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.
 

Method Detail

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 name
data - Data buffer
offset - Offset into data
length - Length of class data after offset
caller - 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.