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:
  • Constructor Details

    • AbstractExpressionPointcut

      public AbstractExpressionPointcut()
  • Method Details

    • setLocation

      public void setLocation(@Nullable String location)
      Set the location for debugging.
    • getLocation

      @Nullable 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(@Nullable String expression)
    • onSetExpression

      protected void onSetExpression(@Nullable String expression) throws IllegalArgumentException
      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

      @Nullable public String getExpression()
      Return this pointcut's expression.
      Specified by:
      getExpression in interface ExpressionPointcut