org.inxar.hotswap
Class JavacCompiler

java.lang.Object
  |
  +--org.inxar.hotswap.ProxyCompiler
        |
        +--org.inxar.hotswap.JavacCompiler
All Implemented Interfaces:
org.inxar.hotswap.PriorityQueue.Listener

public class JavacCompiler
extends ProxyCompiler

Concrete ProxyCompiler implementation that interfaces with sun.tools.javac.Main (requires tools.jar in the classpath).

Since:
0.8.2, renamed in 0.8.6

Fields inherited from class org.inxar.hotswap.ProxyCompiler
COMPILE_FAILURE, COMPILE_SUCCESS, COMPILE_UNKNOWN, STATUS_COMPILE, STATUS_CURRENT, STATUS_ERROR, STATUS_LOAD, STATUS_UNKNOWN, STATUS_WARN
 
Constructor Summary
JavacCompiler()
          Constructs a new ProxyCompiler.
 
Method Summary
 ProxyCompileEvent compile(ProxyClass cls)
          Compiles the class associated with the given ProxyClass.
 boolean initialize(Properties p)
          Initializes the ProxyCompiler instance from the given Properties.
 
Methods inherited from class org.inxar.hotswap.ProxyCompiler
addCompileListener, getClassfile, getClasspath, getDestinationpath, getOptions, getSourcefile, getSourcepath, getStatus, queue_notify, removeCompileListener, setDestinationpath, setProxyClassLoader, setSourcepath
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavacCompiler

public JavacCompiler()
Constructs a new ProxyCompiler.
Method Detail

initialize

public boolean initialize(Properties p)
Description copied from class: ProxyCompiler
Initializes the ProxyCompiler instance from the given Properties. If initialization was unsuccessful, return false.
Overrides:
initialize in class ProxyCompiler

compile

public ProxyCompileEvent compile(ProxyClass cls)
Description copied from class: ProxyCompiler
Compiles the class associated with the given ProxyClass.
Overrides:
compile in class ProxyCompiler