com.caucho.loader.enhancer
Class ClassEnhancerConfig

java.lang.Object
  extended by com.caucho.loader.enhancer.ClassEnhancerConfig
All Implemented Interfaces:
ClassEnhancer

public class ClassEnhancerConfig
extends java.lang.Object
implements ClassEnhancer

Configuration for a class-enhancer builder.


Constructor Summary
ClassEnhancerConfig()
           
 
Method Summary
 java.lang.Object createInit()
          Initializes the enhancer.
 void enhance(GenClass genClass, JClass baseClass, java.lang.String extClassName)
          Enhances the class by adding to the GenClass.
 java.lang.Class getAnnotation()
          Gets the annotation.
 void init()
          Initializes the config.
 void postEnhance(JavaClass extClass)
          Any post compilation fixups.
 void preEnhance(JavaClass baseClass)
          Fixups for the pre-enhancement class.
 void setAnnotation(java.lang.Class ann)
          Sets the annotation.
 void setEnhancerManager(EnhancerManager manager)
          Sets the manager.
 void setStatic(boolean isStatic)
          Set true for a static instance.
 void setType(java.lang.Class type)
          Sets the type of the method enhancer.
 boolean shouldEnhance(java.lang.String className)
          Returns true if the class will be enhanced.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassEnhancerConfig

public ClassEnhancerConfig()
Method Detail

setEnhancerManager

public void setEnhancerManager(EnhancerManager manager)
Sets the manager.


setAnnotation

public void setAnnotation(java.lang.Class ann)
Sets the annotation.


getAnnotation

public java.lang.Class getAnnotation()
Gets the annotation.


setType

public void setType(java.lang.Class type)
             throws java.lang.Exception
Sets the type of the method enhancer.

Throws:
java.lang.Exception

setStatic

public void setStatic(boolean isStatic)
Set true for a static instance.


createInit

public java.lang.Object createInit()
Initializes the enhancer.


init

public void init()
          throws ConfigException
Initializes the config.

Throws:
ConfigException

shouldEnhance

public boolean shouldEnhance(java.lang.String className)
Returns true if the class will be enhanced.

Specified by:
shouldEnhance in interface ClassEnhancer

preEnhance

public void preEnhance(JavaClass baseClass)
                throws java.lang.Exception
Fixups for the pre-enhancement class.

Specified by:
preEnhance in interface ClassEnhancer
Throws:
java.lang.Exception

enhance

public void enhance(GenClass genClass,
                    JClass baseClass,
                    java.lang.String extClassName)
             throws java.lang.Exception
Enhances the class by adding to the GenClass.

Specified by:
enhance in interface ClassEnhancer
Throws:
java.lang.Exception

postEnhance

public void postEnhance(JavaClass extClass)
                 throws java.lang.Exception
Any post compilation fixups.

Specified by:
postEnhance in interface ClassEnhancer
Throws:
java.lang.Exception