Package org.springframework.aop.support
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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionReturn this pointcut's expression.Return location information about the pointcut expression if available.protected voidonSetExpression(String expression) Called when a new pointcut expression is set.voidsetExpression(String expression) voidsetLocation(String location) Set the location for debugging.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.aop.PointcutgetClassFilter, getMethodMatcher
- 
Constructor Details- 
AbstractExpressionPointcutpublic AbstractExpressionPointcut()
 
- 
- 
Method Details- 
setLocationSet the location for debugging.
- 
getLocationReturn location information about the pointcut expression if available. This is useful in debugging.- Returns:
- location information as a human-readable String,
 or nullif none is available
 
- 
setExpression
- 
onSetExpressionCalled 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:
 
- 
getExpressionReturn this pointcut's expression.- Specified by:
- getExpressionin interface- ExpressionPointcut
 
 
-