public final class ClassFileEnhancerTimer extends Support implements ClassFileEnhancer
| Modifier and Type | Field and Description |
|---|---|
protected ClassFileEnhancer |
delegate |
| Constructor and Description |
|---|
ClassFileEnhancerTimer(ClassFileEnhancer delegate)
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
enhanceClassFile(java.io.InputStream inClassFile,
java.io.OutputStream outClassFile)
Enhances a given class according to the JDO meta-data.
|
boolean |
enhanceClassFile(java.io.InputStream inClassFile,
OutputStreamWrapper outClassFile)
Enhances a given class according to the JDO meta-data.
|
getI18N, getI18N, getI18N, getI18N, getI18N, getI18Nprotected final ClassFileEnhancer delegate
public ClassFileEnhancerTimer(ClassFileEnhancer delegate)
public boolean enhanceClassFile(java.io.InputStream inClassFile,
java.io.OutputStream outClassFile)
throws EnhancerUserException,
EnhancerFatalError
ClassFileEnhancerenhanceClassFile in interface ClassFileEnhancerinClassFile - The byte-code of the class to be enhanced.outClassFile - The byte-code of the enhanced class.true if the class has been enhanced,
false otherwise.EnhancerUserExceptionEnhancerFatalErrorpublic boolean enhanceClassFile(java.io.InputStream inClassFile,
OutputStreamWrapper outClassFile)
throws EnhancerUserException,
EnhancerFatalError
ClassFileEnhancerFurthermore, 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).
enhanceClassFile in interface ClassFileEnhancerinClassFile - The byte-code of the class to be enhanced.outClassFile - 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.