public abstract class

AbstractExpressionPointcut

extends Object
implements Serializable ExpressionPointcut
java.lang.Object
   ↳ org.springframework.aop.support.AbstractExpressionPointcut
Known Direct Subclasses

Class Overview

Abstract superclass for expression pointcuts, offering location and expression properties.

Summary

[Expand]
Inherited Fields
From interface org.springframework.aop.Pointcut
Public Constructors
AbstractExpressionPointcut()
Public Methods
String getExpression()
Return this pointcut's expression.
String getLocation()
Return location information about the pointcut expression if available.
void setExpression(String expression)
void setLocation(String location)
Set the location for debugging.
Protected Methods
void onSetExpression(String expression)
Called when a new pointcut expression is set.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.springframework.aop.Pointcut
From interface org.springframework.aop.support.ExpressionPointcut

Public Constructors

public AbstractExpressionPointcut ()

Public Methods

public String getExpression ()

Return this pointcut's expression.

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

public void setExpression (String expression)

public void setLocation (String location)

Set the location for debugging.

Protected Methods

protected void onSetExpression (String expression)

Called when a new pointcut expression is set. The expression should be parsed at this point if possible.

This implementation is empty.

Parameters
expression expression to set
Throws
IllegalArgumentException if the expression is invalid