com.tc.object.bytecode.hook
Interface ClassPreProcessor
- All Known Subinterfaces:
- ClassProcessor, DSOContext
public interface ClassPreProcessor
Modify byte[] before being loaded as a class by the classloader
Method Summary |
byte[] |
preProcess(java.lang.String name,
byte[] data,
int offset,
int length,
java.lang.ClassLoader caller)
XXX::NOTE:: ClassLoader checks the returned byte array to see if the class is instrumented or not to maintain the
offset. |
preProcess
byte[] preProcess(java.lang.String name,
byte[] data,
int offset,
int length,
java.lang.ClassLoader caller)
- XXX::NOTE:: ClassLoader checks the returned byte array to see if the class is instrumented or not to maintain the
offset.
- Parameters:
name
- The class namedata
- Data bufferoffset
- Offset into datalength
- Length of class data after offsetcaller
- The classloader loading the class
- Returns:
- new byte array if the class is instrumented and same input byte array if not.
- See Also:
ClassLoaderPreProcessorImpl
Copyright © 2010 Terracotta, Inc.. All Rights Reserved.