org.enhydra.xml.xmlc.reloading
Interface RecompilationHandler
- All Known Implementing Classes:
- StandardRecompilationHandler
- public interface RecompilationHandler
Interface for a recompilation handler. A recompilation handler is used
to check if a class is out-of-date relative to its source file and to
recompile the class if it is out-of-date.
Method Summary |
void |
init(XMLCReloadingFactory factory)
Bind to a factory. |
boolean |
isOutOfDate(org.enhydra.xml.xmlc.reloading.ClassEntry classEntry)
Determine if the specified class file is out-of-date relative
to its class file. |
void |
recompile(org.enhydra.xml.xmlc.reloading.ClassEntry classEntry)
Recompile a class file from its source file. |
init
public void init(XMLCReloadingFactory factory)
- Bind to a factory. This is done so that loggers, etc
can be grabbed from the factory.
- Parameters:
factory
- Factory that is creating the object. Useful
for getting logging object.
isOutOfDate
public boolean isOutOfDate(org.enhydra.xml.xmlc.reloading.ClassEntry classEntry)
throws XMLCReloadingException
- Determine if the specified class file is out-of-date relative
to its class file. This should check the class file, not
the in-memory class.
- Parameters:
classEntry
- Object containing originally loaded class and
the current class.
recompile
public void recompile(org.enhydra.xml.xmlc.reloading.ClassEntry classEntry)
throws XMLCReloadingException
- Recompile a class file from its source file. Compilation
of the file will already be synchronized by the factory.
- Parameters:
classEntry
- Object containing originally loaded class and
the current class.