Interface Enhancer
-
public interface EnhancerClass responsible for performing enhancement.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]enhance(java.lang.String className, byte[] originalBytes)Performs the enhancement.
-
-
-
Method Detail
-
enhance
byte[] enhance(java.lang.String className, byte[] originalBytes) throws EnhancementExceptionPerforms the enhancement. It is possible to invoke this method concurrently, but when doing so make sure no two enhancement tasks are invoked on the same class in parallel: the Enhancer implementations are not required to guard against this.- Parameters:
className- The name of the class whose bytecode is being enhanced.originalBytes- The class's original (pre-enhancement) byte code- Returns:
- The enhanced bytecode. If the original bytes are not enhanced, null is returned.
- Throws:
EnhancementException- Indicates a problem performing the enhancement
-
-