|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.xenonsoft.bridgetown.aop.impl.DefaultMethodPointCut
Default implementation of the method pointcut.
This implementation uses CGLIB and Jakarta ORO to provide glob style expression filters on both fully qualified class name and a method name.
| Constructor Summary | |
DefaultMethodPointCut()
Default constructor |
|
DefaultMethodPointCut(java.lang.String name,
IMethodInterceptor interceptor)
Convenience method pointcut constructor. |
|
DefaultMethodPointCut(java.lang.String name,
java.lang.String methodExpr,
IMethodInterceptor interceptor)
Convenience method pointcut constructor that excepts the method filters as glob expression strings. |
|
DefaultMethodPointCut(java.lang.String name,
java.lang.String classExpr,
java.lang.String methodExpr,
IMethodInterceptor interceptor)
Convenience method pointcut constructor that excepts the class and method filters as glob expression strings. |
|
| Method Summary | |
void |
addJoinPoint(IJoinPoint joinpoint)
Implements / overrides addJoinPoint |
void |
addJoinPoint(IMethodJoinPoint joinpoint)
Implements / overrides addJoinPoint |
java.lang.Object |
getContext()
Gets the AOP implementation defined context associated with this pointcut. |
int |
getJoinPointCount()
Returns the number of join points associated with the pointcut |
IJoinPoint[] |
getJoinPoints()
Implements / overrides getJoinPoints |
IMethodInterceptor |
getMethodInterceptor()
The method interceptor |
java.lang.String |
getName()
Gets the name of the method pointcut |
java.lang.Object |
getParameter(java.lang.String name)
Implements / overrides getParameter |
java.util.Iterator |
getParameterNames()
Implements / overrides getParameters |
ITransactionConfig |
getTransactionConfig()
Gets the transaction configuration context for this pointcut |
void |
setContext(java.lang.Object context)
Sets the context |
void |
setMethodInterceptor(IMethodInterceptor interceptor)
The method interceptor |
void |
setName(java.lang.String name)
Sets the name of the method pointcut |
void |
setParameter(java.lang.String name,
java.lang.Object value)
Implements / overrides setParameter |
void |
setTransactionConfig(ITransactionConfig transactionConfig)
Sets the transactionConfig |
java.lang.String |
toString()
Prints the debuggable string |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public DefaultMethodPointCut()
public DefaultMethodPointCut(java.lang.String name,
IMethodInterceptor interceptor)
name - the pointcut nameinterceptor - the method interceptor
public DefaultMethodPointCut(java.lang.String name,
java.lang.String methodExpr,
IMethodInterceptor interceptor)
name - the pointcut namemethodExpr - the method glob expressioninterceptor - the method interceptorDefaultMethodPointCut(String, String, IMethodInterceptor)
public DefaultMethodPointCut(java.lang.String name,
java.lang.String classExpr,
java.lang.String methodExpr,
IMethodInterceptor interceptor)
For example a method pointcut to weave all mutator (setter)
methods on a Java package called org.criminal.sleaze
would be:
class glob expression org\.criminal\.sleaze*.
method glob expression set*.
name - the pointcut nameclassExpr - the class glob expressionmethodExpr - the method glob expressioninterceptor - the method interceptor| Method Detail |
public java.lang.String getName()
getName in interface IPointCutpublic void setName(java.lang.String name)
setName in interface IPointCutname - The name to set.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.
getContext in interface IPointCutnullIPointCut.getContext()public void setContext(java.lang.Object context)
context - the contextpublic IMethodInterceptor getMethodInterceptor()
getMethodInterceptor in interface IPointCutIPointCut.getMethodInterceptor()public void setMethodInterceptor(IMethodInterceptor interceptor)
setMethodInterceptor in interface IPointCutinterceptor -
IPointCut.getMethodInterceptor()public void addJoinPoint(IMethodJoinPoint joinpoint)
addJoinPoint in interface IMethodPointCutjoinpoint - IMethodPointCut.addJoinPoint(com.xenonsoft.bridgetown.aop.IMethodJoinPoint)public void addJoinPoint(IJoinPoint joinpoint)
addJoinPoint in interface IPointCutjoinpoint - IPointCut.addJoinPoint(com.xenonsoft.bridgetown.aop.IJoinPoint)public IJoinPoint[] getJoinPoints()
getJoinPoints in interface IPointCutIPointCut.getJoinPoints()public int getJoinPointCount()
getJoinPointCount in interface IPointCutIPointCut.getJoinPointCount()public ITransactionConfig getTransactionConfig()
getTransactionConfig in interface IPointCutIPointCut.getTransactionConfig()public void setTransactionConfig(ITransactionConfig transactionConfig)
setTransactionConfig in interface IPointCuttransactionConfig - The transactionConfig to set.public java.lang.Object getParameter(java.lang.String name)
getParameter in interface IPointCutname -
IPointCut.getParameter(java.lang.String)public java.util.Iterator getParameterNames()
getParameterNames in interface IPointCutcom.xenonsoft.bridgetown.aop.IPointCut#getParameters()
public void setParameter(java.lang.String name,
java.lang.Object value)
setParameter in interface IPointCutname - value - IPointCut.setParameter(java.lang.String, java.lang.Object)public java.lang.String toString()
Object.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||