public class OptimizedConstructorInvocations extends OptimizedBehaviourInvocations
ENFORCE_ARGS_CONSISTENCY, INVOKE_TARGET| Constructor and Description |
|---|
OptimizedConstructorInvocations() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addDispatch(javassist.CtClass invocation,
String methodName,
javassist.CtConstructor constructor)
Creates a method that dispatches execution to a constructor joinpoint,
and adds this method to
invocation class. |
protected static String |
createOptimizedInvocationClass(Instrumentor instrumentor,
javassist.CtClass clazz,
javassist.CtConstructor con,
int index) |
protected static String |
getOptimizedInvocationClassName(javassist.CtClass declaringClazz,
int constructorIndex)
Returns the name of the optimized Invocation class.
|
addArgumentFieldsAndAccessors, addDispatch, setArgumentsdefrostClassIfExists, makeInvocationClass, makeInvocationClassNoCtorsprotected static String getOptimizedInvocationClassName(javassist.CtClass declaringClazz, int constructorIndex)
declaringClazz - the class that contains the constructor.constructorIndex - the index of the constructor.protected static String createOptimizedInvocationClass(Instrumentor instrumentor, javassist.CtClass clazz, javassist.CtConstructor con, int index) throws javassist.NotFoundException, javassist.CannotCompileException
javassist.NotFoundExceptionjavassist.CannotCompileExceptionpublic static final void addDispatch(javassist.CtClass invocation,
String methodName,
javassist.CtConstructor constructor)
throws javassist.NotFoundException,
javassist.CannotCompileException
invocation class.invocation - invocation classmethodName - name of method to createconstructor - constructor to be executed on dispatchjavassist.NotFoundExceptionjavassist.CannotCompileExceptionCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.