com.caucho.loader.enhancer
Class EnhancerPrepare

java.lang.Object
  extended by com.caucho.loader.enhancer.EnhancerPrepare

public class EnhancerPrepare
extends java.lang.Object

Prepares a class for enhancement.


Constructor Summary
EnhancerPrepare()
           
 
Method Summary
 void addEnhancer(ClassEnhancer enhancer)
          Adds a class enhancer.
 Path getPostWorkPath()
          Gets the work path.
 Path getPreWorkPath()
          Gets the work path.
 Path getWorkPath()
          Gets the work path.
protected  JavaClass renameClass(JavaClass jClass, java.lang.String targetClass)
          Moves the old class.
 void renameClass(java.lang.String sourceClass, java.lang.String targetClass)
          Moves the old class.
 void setClassLoader(java.lang.ClassLoader loader)
          Sets the class loader.
 void setWorkPath(Path workPath)
          Sets the work path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnhancerPrepare

public EnhancerPrepare()
Method Detail

setClassLoader

public void setClassLoader(java.lang.ClassLoader loader)
Sets the class loader.


getWorkPath

public Path getWorkPath()
Gets the work path.


setWorkPath

public void setWorkPath(Path workPath)
Sets the work path.


getPreWorkPath

public final Path getPreWorkPath()
Gets the work path.


getPostWorkPath

public final Path getPostWorkPath()
Gets the work path.


addEnhancer

public void addEnhancer(ClassEnhancer enhancer)
Adds a class enhancer.


renameClass

public void renameClass(java.lang.String sourceClass,
                        java.lang.String targetClass)
Moves the old class.


renameClass

protected JavaClass renameClass(JavaClass jClass,
                                java.lang.String targetClass)
Moves the old class.