org.jboss.aop.instrument
Class MethodExecutionTransformer
java.lang.Object
org.jboss.aop.instrument.MethodExecutionTransformer
public class MethodExecutionTransformer
- extends Object
Comment
- Version:
- $Revision: 1.28 $
- Author:
- Bill Burke
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MethodExecutionTransformer
public MethodExecutionTransformer(Instrumentor instrumentor)
getMethodInfoFieldName
public static String getMethodInfoFieldName(String methodName,
long methodHash)
getOptimizedInvocationClassName
public static String getOptimizedInvocationClassName(javassist.CtClass clazz,
javassist.CtMethod method)
throws Exception
- Throws:
Exception
getOptimizedInvocationClassName
public static String getOptimizedInvocationClassName(Method method)
throws Exception
- Throws:
Exception
createOptimizedInvocationClass
protected String createOptimizedInvocationClass(javassist.CtClass clazz,
javassist.CtMethod method)
throws Exception
- Throws:
Exception
instrument
public void instrument(javassist.CtClass clazz,
ClassAdvisor advisor)
throws Exception
- Throws:
Exception
wrap
public void wrap(javassist.CtClass clazz,
Collection methodInfos)
throws Exception
- Wraps the method executions contained in
methodInfos
.
- Parameters:
clazz
- the class being instrumented.constructorIndexes
- a collection of org.jboss.aop.MethodInfo
indentifying
the methods to be wrapped.
- Throws:
Exception
unwrap
public void unwrap(javassist.CtClass clazz,
Collection methodInfos)
throws Exception
- Unwraps the method executions contained in
methodInfos
.
- Parameters:
clazz
- the class being instrumented.constructorIndexes
- a collection of org.jboss.aop.MethodInfo
indentifying
the methods to be unwrapped.
- Throws:
Exception
setArguments
public static String setArguments(javassist.CtClass[] params)
throws Exception
- Throws:
Exception
addSetArguments
public static void addSetArguments(javassist.ClassPool pool,
javassist.CtClass invocation,
javassist.CtClass[] params)
throws Exception
- Throws:
Exception
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.