net.sf.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(net.sf.cglib.core.GeneratorStrategy)
generate
public byte[] generate(ClassGenerator cg)
throws java.lang.Exception
- Throws:
java.lang.Exception
Copyright © 2002-2003 cglib. All Rights Reserved.