com.caucho.loader.enhancer
Interface ClassEnhancer

All Known Implementing Classes:
AbstractClassEnhancer, AmberEnhancer, ClassEnhancerConfig

@Module
public interface ClassEnhancer

Interface for a class enhancer.


Method Summary
 void enhance(GenClass genClass, JClass baseClass, java.lang.String extClassName)
          Enhances the class by adding to the GenClass.
 void postEnhance(JavaClass extClass)
          Any post compilation fixups.
 void preEnhance(JavaClass baseClass)
          Fixups for the pre-enhancement class.
 boolean shouldEnhance(java.lang.String className)
          Returns true if the class will be enhanced.
 

Method Detail

shouldEnhance

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


preEnhance

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

Throws:
java.lang.Exception

enhance

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

Throws:
java.lang.Exception

postEnhance

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

Throws:
java.lang.Exception