Enhydra 3.0.3 API

org.enhydra.xml.xmlc.autocomp
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(XMLCAutoCompFactory factory)
          Bind to a factory.
 boolean isOutOfDate(ClassInfo classInfo)
          Determine if the specified class file is out-of-date relative to its class file.
 void recompile(ClassInfo classInfo)
          Recompile a class file from its source file.
 

Method Detail

init

public void init(XMLCAutoCompFactory 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(ClassInfo classInfo)
                    throws XMLCAutoCompException
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:
classInfo - Object containing originally loaded class and the current class.

recompile

public void recompile(ClassInfo classInfo)
               throws XMLCAutoCompException
Recompile a class file from its source file. Compilation of the file will already be synchronized by the factory.
Parameters:
classInfo - Object containing originally loaded class and the current class.

Enhydra 3.0.3 API