|
Enhydra 5.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.enhydra.xml.xmlc.reloading.StandardRecompilationHandler
Standard recompilation handler. This searches the class path for a source file using the name compiled into the class. The source file must exist when the class is first loaded. A XMLC options file must exist same directory as the class file and having the same basename as the class. This file contains the information needed to recompile the class.
Constructor Summary | |
StandardRecompilationHandler()
|
Method Summary | |
void |
init(XMLCReloadingFactory factory)
Bind to a factory. |
boolean |
isOutOfDate(ClassEntry classEntry)
Determine if the specified class file is out-of-date relative to its class file. |
void |
recompile(ClassEntry classEntry)
Recompile a class file from its source file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StandardRecompilationHandler()
Method Detail |
public void init(XMLCReloadingFactory factory)
init
in interface RecompilationHandler
factory
- Factory that is creating the object. Useful
for getting logging object.public boolean isOutOfDate(ClassEntry classEntry) throws XMLCReloadingException
RecompilationHandler
isOutOfDate
in interface RecompilationHandler
classEntry
- Object containing originally loaded class and
the current class.
XMLCReloadingException
RecompilationHandler.isOutOfDate(org.enhydra.xml.xmlc.reloading.ClassEntry)
public void recompile(ClassEntry classEntry) throws XMLCReloadingException
RecompilationHandler
recompile
in interface RecompilationHandler
classEntry
- Object containing originally loaded class and
the current class.
XMLCReloadingException
recompile(org.enhydra.xml.xmlc.reloading.ClassEntry)
|
Enhydra 5.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |