public interface ClassFileEnhancer
| Modifier and Type | Method and Description |
|---|---|
boolean |
enhanceClassFile(java.io.InputStream in,
java.io.OutputStream out)
Enhances a given class according to the JDO meta-data.
|
boolean |
enhanceClassFile(java.io.InputStream in,
OutputStreamWrapper out)
Enhances a given class according to the JDO meta-data.
|
boolean enhanceClassFile(java.io.InputStream in,
java.io.OutputStream out)
throws EnhancerUserException,
EnhancerFatalError
in - The byte-code of the class to be enhanced.out - The byte-code of the enhanced class.true if the class has been enhanced,
false otherwise.EnhancerUserExceptionEnhancerFatalErrorboolean enhanceClassFile(java.io.InputStream in,
OutputStreamWrapper out)
throws EnhancerUserException,
EnhancerFatalError
Furthermore, the enhancer has to set the classname of the enhanced class to the output stream wrapper object (it's possible to get the input stream without knowing the classname).
in - The byte-code of the class to be enhanced.out - The byte-code of the enhanced class.true if the class has been enhanced,
false otherwise.EnhancerUserExceptionEnhancerFatalErrorCopyright © 2005-2012 Apache Software Foundation. All Rights Reserved.