org.logicalcobwebs.cglib.core
Interface GeneratorStrategy

All Known Implementing Classes:
DefaultGeneratorStrategy

public interface GeneratorStrategy

The GeneratorStrategyClassGenerator and producing a byte array containing the data for the generated Class. By providing your own strategy you may examine or modify the generated class before it is loaded. Typically this will be accomplished by subclassing DefaultGeneratorStrategy and overriding the appropriate protected method.

See Also:
AbstractClassGenerator.setStrategy(org.logicalcobwebs.cglib.core.GeneratorStrategy)

Method Summary
 byte[] generate(ClassGenerator cg)
           
 

Method Detail

generate

byte[] generate(ClassGenerator cg)
                throws java.lang.Exception
Throws:
java.lang.Exception