|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.aspectwerkz.joinpoint.management.JoinPointManager
public class JoinPointManager
Manages the join point compilation, loading and instantiation for the target classes. This implementation relies on the SystemDefinitionContainer.
Nested Class Summary | |
---|---|
static class |
JoinPointManager.CompiledJoinPoint
A compiled joinpoint is tied to a compilation model at a given time |
Constructor Summary | |
---|---|
JoinPointManager()
|
Method Summary | |
---|---|
static JoinPointManager.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)
Compile a new joinpoint |
static AdviceInfoContainer |
getAdviceInfoContainerForJoinPoint(ExpressionContext expressionContext,
ClassLoader loader)
Retrieves the advice info wrapped up in a struct. |
static String[] |
getParameterNames(String adviceName)
Get the parameter names from a "method declaration" signature like pc(type a, type2 b) => 0:a, 1:b |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JoinPointManager()
Method Detail |
---|
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)
joinPointType
- callerClass
- callerMethodName
- callerMethodDesc
- callerMethodModifiers
- calleeClassName
- calleeMemberName
- calleeMemberDesc
- calleeMemberModifiers
- joinPointHash
- joinPointClassName
- public static JoinPointManager.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)
joinPointType
- callerClass
- callerMethodName
- callerMethodDesc
- callerMethodModifiers
- calleeClassName
- calleeMemberName
- calleeMemberDesc
- calleeMemberModifiers
- joinPointHash
- joinPointClassName
- calleeClass
- loader
- the loader that hosts the definitions, and from where caller, callee and aspect are visible.
At runtime it is exactly callerClass.getClassLoader() but in offline mode and genjp, it can happen to be
different when weaved class also exists in the compilation classpath.
public static AdviceInfoContainer getAdviceInfoContainerForJoinPoint(ExpressionContext expressionContext, ClassLoader loader)
expressionContext
- loader
-
public static String[] getParameterNames(String adviceName)
adviceName
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |