Top Description Fields Constructors Methods
org.springframework.aop.support

public abstract Class AbstractExpressionPointcut

extends Object
implements ExpressionPointcut, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, org.springframework.aop.support.ExpressionPointcut, org.springframework.aop.Pointcut
Known Direct Subclasses
org.springframework.aop.aspectj.AspectJExpressionPointcut
Annotations
@SuppressWarnings:serial
Imports
java.io.Serializable, org.springframework.lang.Nullable

Abstract superclass for expression pointcuts, offering location and expression properties.
Authors
Rod Johnson, Rob Harrop
Since
2.0
See Also
setLocation, setExpression

Field Summary

Modifier and TypeField and Description
private String
private String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
public String

Returns:

location information as a human-readable String, or null if none is available
getLocation
()

Return location information about the pointcut expression if available.

protected void
onSetExpression(String
the expression to set
expression
)

Called when a new pointcut expression is set.

public void
setExpression(String expression)

public void
setLocation(String location)

Set the location for debugging.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

expressionback to summary
private String expression
Annotations
@Nullable
locationback to summary
private String location
Annotations
@Nullable

Constructor Detail

AbstractExpressionPointcutback to summary
public AbstractExpressionPointcut()

Method Detail

getExpressionback to summary
public String getExpression()

Implements org.springframework.aop.support.ExpressionPointcut.getExpression.

Return this pointcut's expression.

Annotations
@Override
@Nullable
getLocationback to summary
public String getLocation()

Return location information about the pointcut expression if available. This is useful in debugging.

Returns:String

location information as a human-readable String, or null if none is available

Annotations
@Nullable
onSetExpressionback to summary
protected void onSetExpression(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:String

the expression to set

Exceptions
IllegalArgumentException:
if the expression is invalid
See Also
setExpression
setExpressionback to summary
public void setExpression(String expression)
setLocationback to summary
public void setLocation(String location)

Set the location for debugging.