Enhydra 3.1.1b1 API

org.enhydra.xml.xmlc.reloading
Class StandardRecompilationHandler

java.lang.Object
  |
  +--org.enhydra.xml.xmlc.reloading.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.


Constructor Summary
StandardRecompilationHandler()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandardRecompilationHandler

public StandardRecompilationHandler()
Method Detail

init

public void init(XMLCReloadingFactory 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(org.enhydra.xml.xmlc.reloading.ClassEntry classEntry)
                    throws XMLCReloadingException
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.reloading.ClassEntry)

recompile

public void recompile(org.enhydra.xml.xmlc.reloading.ClassEntry classEntry)
               throws XMLCReloadingException
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.reloading.ClassEntry)

Enhydra 3.1.1b1 API