org.springframework.aop.aspectj
Class AspectJExpressionPointcut

public class AspectJExpressionPointcut
extends AbstractExpressionPointcut
implements IntroductionAwareMethodMatcher, ClassFilter
Spring Pointcut implementation that uses the AspectJ weaver to evaluate a pointcut expression.

The pointcut expression value is an AspectJ expression. This can reference other pointcuts and use composition and other operations.

Naturally, as this is to be processed by Spring AOP's proxy-based model, only method execution pointcuts are supported.

Since2.0
VersionNot specified.
AuthorRob Harrop, Adrian Colyer, Rod Johnson, Juergen Hoeller, Ramnivas Laddad
Wiki javadoc Use textile entry format.
Add your comments here.
Constructor Summary
AspectJExpressionPointcut()
Create a new default AspectJExpressionPointcut.
AspectJExpressionPointcut( Set supportedPrimitives )
Create a new AspectJExpressionPointcut with the given supported primitives.
AspectJExpressionPointcut( Class declarationScope, String [] paramNames, Class [] paramTypes )
Create a new AspectJExpressionPointcut with the given settings.
Method Summary
boolean equals( Object other )
No description provided.
ClassFilter getClassFilter()
No description provided.
MethodMatcher getMethodMatcher()
No description provided.
PointcutExpression getPointcutExpression()
Return the underlying AspectJ pointcut expression.
int hashCode()
No description provided.
boolean isRuntime()
No description provided.
boolean matches( Class targetClass )
No description provided.
boolean matches( Method method, Class targetClass, boolean beanHasIntroductions )
No description provided.
boolean matches( Method method, Class targetClass )
No description provided.
boolean matches( Method method, Class targetClass, Object [] args )
No description provided.
void setParameterNames( String [] names )
Set the parameter names for the pointcut.
void setParameterTypes( Class [] types )
Set the parameter types for the pointcut.
void setPointcutDeclarationScope( Class pointcutDeclarationScope )
Set the declaration scope for the pointcut.
String toString()
No description provided.
Methods inherited from org.springframework.aop.supportExpressionPointcut
AspectJExpressionPointcut
public AspectJExpressionPointcut ( )
Create a new default AspectJExpressionPointcut.
Wiki javadoc Use textile entry format.
Add your comments here.
AspectJExpressionPointcut
public AspectJExpressionPointcut ( Set supportedPrimitives )
Create a new AspectJExpressionPointcut with the given supported primitives.
Parameters
TypeNameDescription
Set supportedPrimitives Set of PointcutPrimitive instances
Wiki javadoc Use textile entry format.
Add your comments here.
AspectJExpressionPointcut
public AspectJExpressionPointcut ( Class declarationScope, String [] paramNames, Class [] paramTypes )
Create a new AspectJExpressionPointcut with the given settings.
Parameters
TypeNameDescription
Class declarationScope the declaration scope for the pointcut
String [] paramNames the parameter names for the pointcut
Class [] paramTypes the parameter types for the pointcut
Wiki javadoc Use textile entry format.
Add your comments here.
equals
public boolean equals ( Object other )
No description provided.
Overrides method in Object
Parameters
TypeNameDescription
Object other No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
getClassFilter
public ClassFilter getClassFilter ( )
No description provided.
Implements method in Pointcut
Wiki javadoc Use textile entry format.
Add your comments here.
getMethodMatcher
public MethodMatcher getMethodMatcher ( )
No description provided.
Implements method in Pointcut
Wiki javadoc Use textile entry format.
Add your comments here.
getPointcutExpression
public PointcutExpression getPointcutExpression ( )
Return the underlying AspectJ pointcut expression.
Wiki javadoc Use textile entry format.
Add your comments here.
hashCode
public int hashCode ( )
No description provided.
Overrides method in Object
Wiki javadoc Use textile entry format.
Add your comments here.
isRuntime
public boolean isRuntime ( )
No description provided.
Implements method in MethodMatcher
Wiki javadoc Use textile entry format.
Add your comments here.
matches
public boolean matches ( Class targetClass )
No description provided.
Implements method in ClassFilter
Parameters
TypeNameDescription
Class targetClass No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
matches
public boolean matches ( Method method, Class targetClass, boolean beanHasIntroductions )
No description provided.
Implements method in IntroductionAwareMethodMatcher
Parameters
TypeNameDescription
Method method No description provided.
Class targetClass No description provided.
boolean beanHasIntroductions No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
matches
public boolean matches ( Method method, Class targetClass )
No description provided.
Implements method in MethodMatcher
Parameters
TypeNameDescription
Method method No description provided.
Class targetClass No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
matches
public boolean matches ( Method method, Class targetClass, Object [] args )
No description provided.
Implements method in MethodMatcher
Parameters
TypeNameDescription
Method method No description provided.
Class targetClass No description provided.
Object [] args No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
setParameterNames
public void setParameterNames ( String [] names )
Set the parameter names for the pointcut.
Parameters
TypeNameDescription
String [] names No description provided.
Returns void No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
setParameterTypes
public void setParameterTypes ( Class [] types )
Set the parameter types for the pointcut.
Parameters
TypeNameDescription
Class [] types No description provided.
Returns void No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
setPointcutDeclarationScope
public void setPointcutDeclarationScope ( Class pointcutDeclarationScope )
Set the declaration scope for the pointcut.
Parameters
TypeNameDescription
Class pointcutDeclarationScope No description provided.
Returns void No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
toString
public String toString ( )
No description provided.
Overrides method in Object
Wiki javadoc Use textile entry format.
Add your comments here.