|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for the different system types to implement.
Field Summary | |
static java.lang.String |
DEFAULT_SYSTEM
The UUID of the single AspectWerkz system if only one definition is used. |
static boolean |
START_REMOTE_PROXY_SERVER
The path to the definition file. |
Method Summary | |
void |
enteringControlFlow(ClassNameMethodMetaDataTuple metaData)
Registers entering of a control flow join point. |
void |
exitingControlFlow(ClassNameMethodMetaDataTuple metaData)
Registers exiting from a control flow join point. |
IndexTuple |
getAdviceIndexFor(java.lang.String name)
Returns the index for a specific name to advice mapping. |
AspectMetaData |
getAspectMetaData(java.lang.String name)
Returns the aspect for the name specified. |
java.util.Collection |
getAspectsMetaData()
Returns a list with all the aspects. |
java.util.List |
getCallPointcuts(ClassMetaData classMetaData,
MethodMetaData methodMetaData)
Returns the caller side pointcut list for the class and method specified. |
java.util.List |
getCFlowExpressions(ClassMetaData classMetaData,
MethodMetaData methodMetaData)
Returns all the cflow call expression for the given metadata (callee side) |
java.util.List |
getExecutionPointcuts(ClassMetaData classMetaData,
MethodMetaData methodMetaData)
Returns the method pointcut list for the class and method specified. |
java.util.List |
getGetPointcuts(ClassMetaData classMetaData,
FieldMetaData fieldMetaData)
Returns the get field pointcut list for the class and field specified. |
java.lang.reflect.Method |
getMethod(java.lang.Class klass,
int index)
Returns a specific method by the class and the method index. |
Mixin |
getMixin(int index)
Retrieves a specific introduction based it's index. |
Mixin |
getMixin(java.lang.String name)
Returns the introduction for a specific name. |
java.util.List |
getSetPointcuts(ClassMetaData classMetaData,
FieldMetaData fieldMetaData)
Returns the set field pointcut list for the class and field specified. |
java.util.List |
getThrowsPointcuts(ClassMetaData classMetaData,
MethodMetaData methodMetaData)
Returns the throws pointcut list for the class and method specified. |
boolean |
hasAspect(java.lang.String name)
Checks if a specific class has an aspect defined. |
void |
initialize()
Initializes the system. |
boolean |
isAttribDef()
Checks if the definition is of type attribute definition. |
boolean |
isInControlFlowOf(Expression cflowExpression)
Checks if we are in the control flow of a specific cflow pointcut. |
boolean |
isXmlDef()
Checks if the definition is of type XML definition. |
Field Detail |
public static final java.lang.String DEFAULT_SYSTEM
public static final boolean START_REMOTE_PROXY_SERVER
Method Detail |
public void initialize()
public boolean isAttribDef()
public boolean isXmlDef()
public AspectMetaData getAspectMetaData(java.lang.String name)
name
- the name of the aspect
public java.util.Collection getAspectsMetaData()
public java.util.List getExecutionPointcuts(ClassMetaData classMetaData, MethodMetaData methodMetaData)
classMetaData
- the meta-data for the classmethodMetaData
- meta-data for the method
public java.util.List getCallPointcuts(ClassMetaData classMetaData, MethodMetaData methodMetaData)
classMetaData
- the meta-data for the classmethodMetaData
- meta-data for the method
public java.util.List getGetPointcuts(ClassMetaData classMetaData, FieldMetaData fieldMetaData)
classMetaData
- the meta-data for the classfieldMetaData
- meta-data for the field
public java.util.List getSetPointcuts(ClassMetaData classMetaData, FieldMetaData fieldMetaData)
classMetaData
- the meta-data for the classfieldMetaData
- meta-data for the field
public java.util.List getThrowsPointcuts(ClassMetaData classMetaData, MethodMetaData methodMetaData)
classMetaData
- the meta-data for the classmethodMetaData
- meta-data for the method
public java.util.List getCFlowExpressions(ClassMetaData classMetaData, MethodMetaData methodMetaData)
classMetaData
- the name of the classmethodMetaData
- the meta-data for the method
public IndexTuple getAdviceIndexFor(java.lang.String name)
name
- the name of the advice
public Mixin getMixin(int index)
index
- the index of the introduction
public Mixin getMixin(java.lang.String name)
name
- the name of the introduction
public boolean hasAspect(java.lang.String name)
name
- the name of the aspect
public java.lang.reflect.Method getMethod(java.lang.Class klass, int index)
klass
- the class housing the methodindex
- the method index
public void enteringControlFlow(ClassNameMethodMetaDataTuple metaData)
metaData
- the classname:methodMetaData metaDatapublic void exitingControlFlow(ClassNameMethodMetaDataTuple metaData)
metaData
- the classname:methodMetaData metaDatapublic boolean isInControlFlowOf(Expression cflowExpression)
cflowExpression
- the compiled tuple with the class pattern and the method pattern of the cflow pointcut
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |