Class AbstractExpressionPointcut
java.lang.Object
org.springframework.aop.support.AbstractExpressionPointcut
- All Implemented Interfaces:
Serializable
,Pointcut
,ExpressionPointcut
- Direct Known Subclasses:
AspectJExpressionPointcut
public abstract class AbstractExpressionPointcut
extends Object
implements ExpressionPointcut, Serializable
Abstract superclass for expression pointcuts,
offering location and expression properties.
- Since:
- 2.0
- Author:
- Rod Johnson, Rob Harrop
- See Also:
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn this pointcut's expression.Return location information about the pointcut expression if available.protected void
onSetExpression
(@Nullable String expression) Called when a new pointcut expression is set.void
setExpression
(@Nullable String expression) void
setLocation
(@Nullable String location) Set the location for debugging.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.aop.Pointcut
getClassFilter, getMethodMatcher
-
Constructor Details
-
AbstractExpressionPointcut
public AbstractExpressionPointcut()
-
-
Method Details
-
setLocation
-
getLocation
-
setExpression
-
onSetExpression
Called when a new pointcut expression is set. The expression should be parsed at this point if possible.This implementation is empty.
- Parameters:
expression
- the expression to set- Throws:
IllegalArgumentException
- if the expression is invalid- See Also:
-
getExpression
Return this pointcut's expression.- Specified by:
getExpression
in interfaceExpressionPointcut
-