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, getI18N
protected final ClassFileEnhancer delegate
public ClassFileEnhancerTimer(ClassFileEnhancer delegate)
public boolean enhanceClassFile(java.io.InputStream inClassFile, java.io.OutputStream outClassFile) throws EnhancerUserException, EnhancerFatalError
ClassFileEnhancer
enhanceClassFile
in interface ClassFileEnhancer
inClassFile
- 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.EnhancerUserException
EnhancerFatalError
public boolean enhanceClassFile(java.io.InputStream inClassFile, OutputStreamWrapper outClassFile) throws EnhancerUserException, EnhancerFatalError
ClassFileEnhancer
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).
enhanceClassFile
in interface ClassFileEnhancer
inClassFile
- 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.EnhancerUserException
EnhancerFatalError
Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.