public class ClassEnhancerConfig extends java.lang.Object implements ClassEnhancer
| Constructor and Description |
|---|
ClassEnhancerConfig() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public void setEnhancerManager(EnhancerManager manager)
public void setAnnotation(java.lang.Class ann)
public java.lang.Class getAnnotation()
public void setType(java.lang.Class type)
throws java.lang.Exception
java.lang.Exceptionpublic void setStatic(boolean isStatic)
public java.lang.Object createInit()
public void init()
throws ConfigException
ConfigExceptionpublic boolean shouldEnhance(java.lang.String className)
shouldEnhance in interface ClassEnhancerpublic void preEnhance(JavaClass baseClass) throws java.lang.Exception
preEnhance in interface ClassEnhancerjava.lang.Exceptionpublic void enhance(GenClass genClass, JClass baseClass, java.lang.String extClassName) throws java.lang.Exception
enhance in interface ClassEnhancerjava.lang.Exceptionpublic void postEnhance(JavaClass extClass) throws java.lang.Exception
postEnhance in interface ClassEnhancerjava.lang.Exception