| java.lang.Object com.tc.aspectwerkz.joinpoint.management.JoinPointManager
JoinPointManager | public class JoinPointManager (Code) | | Manages the join point compilation, loading and instantiation for the target classes. This implementation relies on
the SystemDefinitionContainer.
author: Alexandre Vasseur author: Jonas BonŽr |
Inner Class :public static class CompiledJoinPoint | |
Method Summary | |
public static CompiledJoinPoint | compileJoinPoint(int joinPointType, Class callerClass, String callerMethodName, String callerMethodDesc, int callerMethodModifiers, String calleeClassName, String calleeMemberName, String calleeMemberDesc, int calleeMemberModifiers, int joinPointHash, String joinPointClassName, Class calleeClass, ClassLoader loader, SystemDefinition systemDef) Compile a new joinpoint
Parameters: joinPointType - Parameters: callerClass - Parameters: callerMethodName - Parameters: callerMethodDesc - Parameters: callerMethodModifiers - Parameters: calleeClassName - Parameters: calleeMemberName - Parameters: calleeMemberDesc - Parameters: calleeMemberModifiers - Parameters: joinPointHash - Parameters: joinPointClassName - Parameters: calleeClass - Parameters: loader - the loader that hosts the definitions, and from where caller, callee and aspect are visible. | public static AdviceInfoContainer | getAdviceInfoContainerForJoinPoint(ExpressionContext expressionContext, ClassLoader loader, SystemDefinition systemDef) Retrieves the advice info wrapped up in a struct. | public static String[] | getParameterNames(String adviceName) | public static void | loadJoinPoint(int joinPointType, Class callerClass, String callerMethodName, String callerMethodDesc, int callerMethodModifiers, String calleeClassName, String calleeMemberName, String calleeMemberDesc, int calleeMemberModifiers, int joinPointHash, String joinPointClassName, SystemDefinition systemDef) Used to eagerly load the join point compilation. | public static void | loadJoinPoint(int joinPointType, Class callerClass, String callerMethodName, String callerMethodDesc, int callerMethodModifiers, String calleeClassName, String calleeMemberName, String calleeMemberDesc, int calleeMemberModifiers, int joinPointHash, String joinPointClassName) Ensures that the specific joinPoint class for the given target class and joinPoint info is generated. |
compileJoinPoint | public static CompiledJoinPoint compileJoinPoint(int joinPointType, Class callerClass, String callerMethodName, String callerMethodDesc, int callerMethodModifiers, String calleeClassName, String calleeMemberName, String calleeMemberDesc, int calleeMemberModifiers, int joinPointHash, String joinPointClassName, Class calleeClass, ClassLoader loader, SystemDefinition systemDef)(Code) | | Compile a new joinpoint
Parameters: joinPointType - Parameters: callerClass - Parameters: callerMethodName - Parameters: callerMethodDesc - Parameters: callerMethodModifiers - Parameters: calleeClassName - Parameters: calleeMemberName - Parameters: calleeMemberDesc - Parameters: calleeMemberModifiers - Parameters: joinPointHash - Parameters: joinPointClassName - Parameters: calleeClass - Parameters: loader - the loader that hosts the definitions, and from where caller, callee and aspect are visible. Atruntime it is exactly callerClass.getClassLoader() but in offline mode and genjp, it can happen to bedifferent when weaved class also exists in the compilation classpath. Parameters: systemDef - (can be null) the compiled join point |
getAdviceInfoContainerForJoinPoint | public static AdviceInfoContainer getAdviceInfoContainerForJoinPoint(ExpressionContext expressionContext, ClassLoader loader, SystemDefinition systemDef)(Code) | | Retrieves the advice info wrapped up in a struct.
Parameters: expressionContext - Parameters: loader - Parameters: systemDef - (can be null) the advice info |
getParameterNames | public static String[] getParameterNames(String adviceName)(Code) | | Get the parameter names from a "method declaration" signature like pc(type a, type2 b) => 0:a, 1:b
Parameters: adviceName - the parameter names |
loadJoinPoint | public static void loadJoinPoint(int joinPointType, Class callerClass, String callerMethodName, String callerMethodDesc, int callerMethodModifiers, String calleeClassName, String calleeMemberName, String calleeMemberDesc, int calleeMemberModifiers, int joinPointHash, String joinPointClassName, SystemDefinition systemDef)(Code) | | Used to eagerly load the join point compilation. Ensures that the specific joinPoint class for the given target
class and joinPoint info is generated. This call is added to the weaved class as a "clinit" block.
Parameters: joinPointType - Parameters: callerClass - Parameters: callerMethodName - Parameters: callerMethodDesc - Parameters: callerMethodModifiers - Parameters: calleeClassName - Parameters: calleeMemberName - Parameters: calleeMemberDesc - Parameters: calleeMemberModifiers - Parameters: joinPointHash - Parameters: joinPointClassName - Parameters: systemDef - optional system definition that will override the existing one |
loadJoinPoint | public static void loadJoinPoint(int joinPointType, Class callerClass, String callerMethodName, String callerMethodDesc, int callerMethodModifiers, String calleeClassName, String calleeMemberName, String calleeMemberDesc, int calleeMemberModifiers, int joinPointHash, String joinPointClassName)(Code) | | Ensures that the specific joinPoint class for the given target class and joinPoint info is generated. This call is
added to the weaved class as a "clinit" block
Parameters: joinPointType - Parameters: callerClass - Parameters: callerMethodName - Parameters: callerMethodDesc - Parameters: callerMethodModifiers - Parameters: calleeClassName - Parameters: calleeMemberName - Parameters: calleeMemberDesc - Parameters: calleeMemberModifiers - Parameters: joinPointHash - Parameters: joinPointClassName - |
|
|