FileDocCategorySizeDatePackage
BytecodePreprocessor.javaAPI DocGlassfish v2 API3000Fri May 04 22:35:26 BST 2007com.sun.appserv

BytecodePreprocessor

public interface BytecodePreprocessor
Third party tool vendors may implement this interface to provide code instrumentation to the application server.

Fields Summary
Constructors Summary
Methods Summary
public booleaninitialize(java.util.Hashtable parameters)
Initialize the profiler instance. This method should be called exactly once before any calls to preprocess.

param
parameters Initialization parameters.
return
true if initialization succeeded.

public byte[]preprocess(java.lang.String classname, byte[] classBytes)
This function profiler-enables the given class. This method should not be called until the initialization method has completed. It is thread- safe.

param
classname The name of the class to process. Used for efficient filtering.
param
classBytes Actual contents of class to process
return
The instrumented class bytes.