|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
A contract interface for a pointcut
In aspect-oriented computer programming, a pointcut is a set of join points. Whenever the program execution reaches one of the join points described in the pointcut, a piece of code associated with the pointcut (called advice) is executed.
A join point is a point in the flow of a program, general computer science In aspect-oriented programming a set of join points is described, so that it can be referred to as a pointcut.
In aspect-oriented programming an advice is a piece of code that is executed when a join point is reached, that is associated with the pointcut of the advice.
An aspect is the AOP equivalent of a class, except that it encapsulates one or more cross-cutting concerns and formally describes to how weave advice over pointcuts. Just as a object oriented class contains methods and fields, an aspect contains advice and rules for applying advice.
A pointcut has a interceptor IMethodInterceptor
in order to execute an aspect oriented behaviour. A pointcut also has a unique
name
| Method Summary | |
void |
addJoinPoint(IJoinPoint joinpoint)
Registers a join point to this point cut |
java.lang.Object |
getContext()
Gets the AOP implementation defined context associated with this pointcut. |
int |
getJoinPointCount()
Returns the number of join points that associated with this pointcut. |
IJoinPoint[] |
getJoinPoints()
Returns the array of join points that associated with this pointcut. |
IMethodInterceptor |
getMethodInterceptor()
Specifies the advice, the invocation method, that will be executed on this pointcut. |
java.lang.String |
getName()
Get the point cut name |
java.lang.Object |
getParameter(java.lang.String name)
Retrieves the named parameter |
java.util.Iterator |
getParameterNames()
Retrieves iterator that enables to the caller to cycle throught the elements in the pointcuts parameter collection. |
ITransactionConfig |
getTransactionConfig()
Gets the transaction configuration relevant to this pointcut. |
void |
setMethodInterceptor(IMethodInterceptor interceptor)
Sets the interceptor of the pointcut NB: Only assembler factories should change this value. |
void |
setName(java.lang.String name)
Sets the name of the pointcut. |
void |
setParameter(java.lang.String name,
java.lang.Object value)
Stores the value inside the named parameter |
void |
setTransactionConfig(ITransactionConfig transConfig)
Sets the transaction configuration relevant to this pointcut. |
| Method Detail |
public java.lang.String getName()
public java.lang.Object getContext()
CAUTION
: This object is obviously opaque data in terms of the Brigetown IoC Framework assembly. The context can be used by the particular Aspect Oriented Framework implementation. You may be able to retrieve additional implementation defined behaviour or data throught this method call. For instance more information about the particular point-cut, obviously you need to read the documentation for you AOP implementation for more information.
nullpublic int getJoinPointCount()
public IJoinPoint[] getJoinPoints()
public void addJoinPoint(IJoinPoint joinpoint)
joinpoint - the joinpoint to addpublic IMethodInterceptor getMethodInterceptor()
public void setName(java.lang.String name)
NB: Only assembler factories should change this value.
name - the namepublic void setMethodInterceptor(IMethodInterceptor interceptor)
NB: Only assembler factories should change this value.
interceptor - public ITransactionConfig getTransactionConfig()
public void setTransactionConfig(ITransactionConfig transConfig)
transConfig - the transaction informationpublic java.util.Iterator getParameterNames()
getParameter(String)
public java.lang.Object getParameter(java.lang.String name)
name - the parameter name
null
if the parameter does not exits.
public void setParameter(java.lang.String name,
java.lang.Object value)
name - the parameter namevalue - the new value of the named parameter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||