|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.aspectwerkz.aspect.management.Pointcut
Implementation of the pointcut concept. I.e. an abstraction of a well defined point of execution in the program.
Could matches one or many as long at it is well defined.
Field Summary | |
protected AdviceInfo[] |
m_afterFinallyAdviceIndexes
The indexes of the after finally advices. |
protected String[] |
m_afterFinallyAdviceNames
The names of the after finally advices. |
protected AdviceInfo[] |
m_afterReturningAdviceIndexes
The indexes of the after returning advices. |
protected String[] |
m_afterReturningAdviceNames
The names of the after returning advices. |
protected AdviceInfo[] |
m_afterThrowingAdviceIndexes
The indexes of the after throwing advices. |
protected String[] |
m_afterThrowingAdviceNames
The names of the after throwing advices. |
protected AdviceInfo[] |
m_aroundAdviceIndexes
The indexes of the around advices. |
protected String[] |
m_aroundAdviceNames
The names of the around advices. |
protected AspectManager |
m_aspectManager
The AspectManager for the AspectWerkz system. |
protected AdviceInfo[] |
m_beforeAdviceIndexes
The indexes of the before advices. |
protected String[] |
m_beforeAdviceNames
The names of the around advices. |
protected ExpressionInfo |
m_expressionInfo
The expression for the pointcut. |
Constructor Summary | |
Pointcut(AspectManager aspectManager,
ExpressionInfo expressionInfo)
Creates a new pointcut. |
Method Summary | |
void |
addAfterFinallyAdvices(String advice)
Adds an after finally advice to the pointcut. |
void |
addAfterReturningAdvices(String advice)
Adds an after returning advice to the pointcut. |
void |
addAfterThrowingAdvices(String advice)
Adds an after throwing advice to the pointcut. |
void |
addAroundAdvice(String advice)
Adds an around advice to the pointcut. |
void |
addBeforeAdvice(String advice)
Adds a before advice to the pointcut. |
AdviceInfo |
getAfterAdviceIndex(int index)
Returns a specific advice index. |
List |
getAfterAdviceIndexTuples()
Returns the advices in the form of an array with advice/index tuples. |
AdviceInfo[] |
getAfterFinallyAdviceIndexes()
Returns a list with the indexes for the after advices for the pointcut. |
String |
getAfterFinallyAdviceName(int index)
Returns the after advice name at the given index |
AdviceInfo[] |
getAfterReturningAdviceIndexes()
Returns a list with the indexes for the after advices for the pointcut. |
String |
getAfterReturningAdviceName(int index)
Returns the after advice name at the given index |
AdviceInfo[] |
getAfterThrowingAdviceIndexes()
Returns a list with the indexes for the after advices for the pointcut. |
String |
getAfterThrowingAdviceName(int index)
Returns the after advice name at the given index |
AdviceInfo |
getAroundAdviceIndex(int index)
Returns a specific advice index. |
AdviceInfo[] |
getAroundAdviceIndexes()
Returns a list with the indexes for the around advices for the pointcut. |
List |
getAroundAdviceIndexTuples()
Returns the advices in the form of an array with advice/index tuples. |
String |
getAroundAdviceName(int index)
Returns the around advice name at the given index. |
AspectManager |
getAspectManager()
Returns the aspect manager. |
AdviceInfo |
getBeforeAdviceIndex(int index)
Returns a specific advice index. |
AdviceInfo[] |
getBeforeAdviceIndexes()
Returns a list with the indexes for the before advices for the pointcut. |
List |
getBeforeAdviceIndexTuples()
Returns the advices in the form of an array with advice/index tuples. |
String |
getBeforeAdviceName(int index)
Returns the before advice name at the given index |
ExpressionInfo |
getExpressionInfo()
Returns the expression for the pointcut. |
boolean |
hasAfterAdvice(String advice)
Checks if the pointcuts has a certain advice. |
boolean |
hasAroundAdvice(String advice)
Checks if the pointcuts has a certain advice. |
boolean |
hasBeforeAdvice(String advice)
Checks if the pointcuts has a certain advice. |
void |
removeAfterAdvice(String advice)
Removes an advice from the pointcut. |
void |
removeAroundAdvice(String advice)
Removes an advice from the pointcut. |
void |
removeBeforeAdvice(String advice)
Removes an advice from the pointcut. |
void |
setAfterAdviceIndexTuples(List advices)
Sets the advices. |
void |
setAroundAdviceIndexTuples(List advices)
Sets the advices. |
void |
setBeforeAdviceIndexTuples(List advices)
Sets the advices. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected transient ExpressionInfo m_expressionInfo
protected String[] m_aroundAdviceNames
protected String[] m_beforeAdviceNames
protected String[] m_afterFinallyAdviceNames
protected String[] m_afterReturningAdviceNames
protected String[] m_afterThrowingAdviceNames
protected AdviceInfo[] m_aroundAdviceIndexes
protected AdviceInfo[] m_beforeAdviceIndexes
protected AdviceInfo[] m_afterFinallyAdviceIndexes
protected AdviceInfo[] m_afterReturningAdviceIndexes
protected AdviceInfo[] m_afterThrowingAdviceIndexes
protected final transient AspectManager m_aspectManager
Constructor Detail |
public Pointcut(AspectManager aspectManager, ExpressionInfo expressionInfo)
aspectManager
- the aspectManager for the AspectWerkz systemexpressionInfo
- the pattern for the pointcutMethod Detail |
public void addAroundAdvice(String advice)
advice
- the name of the advice to addpublic void addBeforeAdvice(String advice)
advice
- the name of the advice to addpublic void addAfterFinallyAdvices(String advice)
advice
- the name of the advice to addpublic void addAfterReturningAdvices(String advice)
advice
- the name of the advice to addpublic void addAfterThrowingAdvices(String advice)
advice
- the name of the advice to addpublic void removeAroundAdvice(String advice)
advice
- the name of the advice to removepublic void removeBeforeAdvice(String advice)
advice
- the name of the advice to removepublic void removeAfterAdvice(String advice)
advice
- the name of the advice to removepublic boolean hasAroundAdvice(String advice)
advice
- the advice to check for existence
public boolean hasBeforeAdvice(String advice)
advice
- the advice to check for existence
public boolean hasAfterAdvice(String advice)
advice
- the advice to check for existence
public List getAroundAdviceIndexTuples()
addAdviceTestMethod(..)
. removeAdviceTestMethod(..)
.
public List getBeforeAdviceIndexTuples()
addAdviceTestMethod(..)
. removeAdviceTestMethod(..)
.
public List getAfterAdviceIndexTuples()
addAdviceTestMethod(..)
. removeAdviceTestMethod(..)
.
public void setAroundAdviceIndexTuples(List advices)
addAdviceTestMethod(..)
. removeAdviceTestMethod(..)
.
advices
- the new advice/index tuple arraypublic void setBeforeAdviceIndexTuples(List advices)
addAdviceTestMethod(..)
. removeAdviceTestMethod(..)
.
advices
- the new advice/index tuple arraypublic void setAfterAdviceIndexTuples(List advices)
addAdviceTestMethod(..)
. removeAdviceTestMethod(..)
.
advices
- the new advice/index tuple arraypublic String getAroundAdviceName(int index)
public AdviceInfo getAroundAdviceIndex(int index)
public AdviceInfo getBeforeAdviceIndex(int index)
public AdviceInfo getAfterAdviceIndex(int index)
public AdviceInfo[] getAroundAdviceIndexes()
public AdviceInfo[] getBeforeAdviceIndexes()
public String getBeforeAdviceName(int index)
public AdviceInfo[] getAfterFinallyAdviceIndexes()
public AdviceInfo[] getAfterReturningAdviceIndexes()
public AdviceInfo[] getAfterThrowingAdviceIndexes()
public String getAfterFinallyAdviceName(int index)
public String getAfterReturningAdviceName(int index)
public String getAfterThrowingAdviceName(int index)
public ExpressionInfo getExpressionInfo()
public AspectManager getAspectManager()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |