org.springframework.aop.support
Class AbstractExpressionPointcut
java.lang.Object
org.springframework.aop.support.AbstractExpressionPointcut
- All Implemented Interfaces:
- Pointcut, ExpressionPointcut
- Direct Known Subclasses:
- AspectJExpressionPointcut
public abstract class AbstractExpressionPointcut
- extends Object
- implements ExpressionPointcut
Abstract superclass for expression pointcuts.
- Since:
- 2.0
- Author:
- Rod Johnson, Rob Harrop
Fields inherited from interface org.springframework.aop.Pointcut |
TRUE |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractExpressionPointcut
public AbstractExpressionPointcut()
setLocation
public void setLocation(String location)
- Set the location for debugging.
getLocation
public String getLocation()
- Return location information about the pointcut expression
if available. This is useful in debugging.
- Returns:
- location information as a human-readable String,
or
null
if none is available
setExpression
public void setExpression(String expression)
getExpression
public String getExpression()
- Description copied from interface:
ExpressionPointcut
- Return the String expression for this pointcut
- Specified by:
getExpression
in interface ExpressionPointcut
- Returns:
- the String expression for this pointcut
onSetExpression
protected abstract void onSetExpression(String expression)
throws IllegalArgumentException
- Set the pointcut expression. The expression should be parsed
at this point if possible.
- Parameters:
expression
- expression to set
- Throws:
IllegalArgumentException
- if the expression is invalid
Copyright © 2002-2006 The Spring Framework.