org.enhydra.xml.xmlc.autocomp
Class StandardRecompilationHandler
java.lang.Object
|
+--org.enhydra.xml.xmlc.autocomp.StandardRecompilationHandler
- public class StandardRecompilationHandler
- extends java.lang.Object
- implements RecompilationHandler
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.
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
StandardRecompilationHandler
public StandardRecompilationHandler()
init
public void init(XMLCAutoCompFactory factory)
- Bind to a factory. This is done so that loggers, etc
can be grabbed from the factory.
- Specified by:
- init in interface RecompilationHandler
- Parameters:
factory
- Factory that is creating the object. Useful
for getting logging object.
isOutOfDate
public boolean isOutOfDate(ClassInfo classInfo)
throws XMLCAutoCompException
- Description copied from interface: RecompilationHandler
- 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.
- Specified by:
- isOutOfDate in interface RecompilationHandler
- See Also:
RecompilationHandler.isOutOfDate(org.enhydra.xml.xmlc.autocomp.ClassInfo)
recompile
public void recompile(ClassInfo classInfo)
throws XMLCAutoCompException
- Description copied from interface: RecompilationHandler
- Recompile a class file from its source file. Compilation
of the file will already be synchronized by the factory.
- Specified by:
- recompile in interface RecompilationHandler
- See Also:
recompile(org.enhydra.xml.xmlc.autocomp.ClassInfo)