Class ByteCodeEnhancerTimer
- java.lang.Object
-
- com.sun.jdo.api.persistence.enhancer.util.Assertion
-
- com.sun.jdo.api.persistence.enhancer.util.Support
-
- com.sun.jdo.api.persistence.enhancer.ByteCodeEnhancerTimer
-
- All Implemented Interfaces:
ByteCodeEnhancer
public final class ByteCodeEnhancerTimer extends Support implements ByteCodeEnhancer
-
-
Field Summary
Fields Modifier and Type Field Description protected ByteCodeEnhancerdelegate
-
Constructor Summary
Constructors Constructor Description ByteCodeEnhancerTimer(ByteCodeEnhancer delegate)Creates an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanenhanceClassFile(InputStream inByteCode, OutputStreamWrapper outByteCode)Enhances a given class according to the JDO meta-data.booleanenhanceClassFile(InputStream inByteCode, OutputStream outByteCode)Enhances a given class according to the JDO meta-data.-
Methods inherited from class com.sun.jdo.api.persistence.enhancer.util.Support
getI18N, getI18N, getI18N, getI18N, getI18N, getI18N
-
-
-
-
Field Detail
-
delegate
protected final ByteCodeEnhancer delegate
-
-
Constructor Detail
-
ByteCodeEnhancerTimer
public ByteCodeEnhancerTimer(ByteCodeEnhancer delegate)
Creates an instance.
-
-
Method Detail
-
enhanceClassFile
public boolean enhanceClassFile(InputStream inByteCode, OutputStream outByteCode) throws EnhancerUserException, EnhancerFatalError
Description copied from interface:ByteCodeEnhancerEnhances a given class according to the JDO meta-data. If the input class has been enhanced or not - the output stream is always written, either with the enhanced class or with the non-enhanced class.- Specified by:
enhanceClassFilein interfaceByteCodeEnhancer- Parameters:
inByteCode- The byte-code of the class to be enhanced.outByteCode- The byte-code of the enhanced class.- Returns:
trueif the class has been enhanced,falseotherwise.- Throws:
EnhancerUserExceptionEnhancerFatalError
-
enhanceClassFile
public boolean enhanceClassFile(InputStream inByteCode, OutputStreamWrapper outByteCode) throws EnhancerUserException, EnhancerFatalError
Description copied from interface:ByteCodeEnhancerEnhances a given class according to the JDO meta-data. If the input class has been enhanced or not - the output stream is always written, either with the enhanced class or with the non-enhanced class.
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).- Specified by:
enhanceClassFilein interfaceByteCodeEnhancer- Parameters:
inByteCode- The byte-code of the class to be enhanced.outByteCode- The byte-code of the enhanced class.- Returns:
trueif the class has been enhanced,falseotherwise.- Throws:
EnhancerUserExceptionEnhancerFatalError
-
-