The Spring Framework

org.springframework.aop.support
Class AbstractExpressionPointcut

java.lang.Object
  extended by 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

Field Summary
 
Fields inherited from interface org.springframework.aop.Pointcut
TRUE
 
Constructor Summary
AbstractExpressionPointcut()
           
 
Method Summary
 String getExpression()
          Return the String expression for this pointcut
 String getLocation()
          Return location information about the pointcut expression if available.
protected abstract  void onSetExpression(String expression)
          Set the pointcut expression.
 void setExpression(String expression)
           
 void setLocation(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 Detail

AbstractExpressionPointcut

public AbstractExpressionPointcut()
Method Detail

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

The Spring Framework

Copyright © 2002-2006 The Spring Framework.