org.tinygroup.jspengine.appserv
接口 BytecodePreprocessor


public interface BytecodePreprocessor

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


方法摘要
 boolean initialize(Hashtable parameters)
          Initialize the profiler instance.
 byte[] preprocess(String classname, byte[] classBytes)
          This function profiler-enables the given class.
 

方法详细信息

initialize

boolean initialize(Hashtable parameters)
Initialize the profiler instance. This method should be called exactly once before any calls to preprocess.

参数:
parameters - Initialization parameters.
返回:
true if initialization succeeded.

preprocess

byte[] preprocess(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.

参数:
classname - The name of the class to process. Used for efficient filtering.
classBytes - Actual contents of class to process
返回:
The instrumented class bytes.


Copyright © 2006–2014 开源组织. All rights reserved.