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

public abstract Class StaticMethodMatcherPointcutAdvisor

extends StaticMethodMatcherPointcut
implements PointcutAdvisor, Ordered, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, org.springframework.core.Ordered, org.springframework.aop.PointcutAdvisor, org.springframework.aop.Advisor
Annotations
@SuppressWarnings:serial
Imports
java.io.Serializable, org.aopalliance.aop.Advice, org.springframework.aop.Pointcut, .PointcutAdvisor, org.springframework.core.Ordered, org.springframework.util.Assert

Convenient base class for Advisors that are also static pointcuts. Serializable if Advice and subclass are.
Authors
Rod Johnson, Juergen Hoeller

Field Summary

Modifier and TypeField and Description
private Advice
private int

Constructor Summary

AccessConstructor and Description
public
StaticMethodMatcherPointcutAdvisor()

Create a new StaticMethodMatcherPointcutAdvisor, expecting bean-style configuration.

public
StaticMethodMatcherPointcutAdvisor(Advice
the Advice to use
advice
)

Create a new StaticMethodMatcherPointcutAdvisor for the given advice.

Method Summary

Modifier and TypeMethod and Description
public Advice
getAdvice()

Implements org.springframework.aop.Advisor.getAdvice.

Return the advice part of this aspect.

public int
getOrder()

Implements org.springframework.core.Ordered.getOrder.

Get the order value of this object.

public Pointcut
getPointcut()

Implements org.springframework.aop.PointcutAdvisor.getPointcut.

Get the Pointcut that drives this advisor.

public void
setAdvice(Advice advice)

public void
setOrder(int order)

Inherited from org.springframework.aop.support.StaticMethodMatcherPointcut:
getClassFiltergetMethodMatchersetClassFilter

Field Detail

adviceback to summary
private Advice advice
orderback to summary
private int order

Constructor Detail

StaticMethodMatcherPointcutAdvisorback to summary
public StaticMethodMatcherPointcutAdvisor()

Create a new StaticMethodMatcherPointcutAdvisor, expecting bean-style configuration.

See Also
setAdvice
StaticMethodMatcherPointcutAdvisorback to summary
public StaticMethodMatcherPointcutAdvisor(Advice advice)

Create a new StaticMethodMatcherPointcutAdvisor for the given advice.

Parameters
advice:Advice

the Advice to use

Method Detail

getAdviceback to summary
public Advice getAdvice()

Implements org.springframework.aop.Advisor.getAdvice.

Doc from org.springframework.aop.Advisor.getAdvice.

Return the advice part of this aspect. An advice may be an interceptor, a before advice, a throws advice, etc.

Returns:Advice

the advice that should apply if the pointcut matches

Annotations
@Override
getOrderback to summary
public int getOrder()

Implements org.springframework.core.Ordered.getOrder.

Doc from org.springframework.core.Ordered.getOrder.

Get the order value of this object.

Higher values are interpreted as lower priority. As a consequence, the object with the lowest value has the highest priority (somewhat analogous to Servlet load-on-startup values).

Same order values will result in arbitrary sort positions for the affected objects.

Returns:int

the order value

Annotations
@Override
getPointcutback to summary
public Pointcut getPointcut()

Implements org.springframework.aop.PointcutAdvisor.getPointcut.

Doc from org.springframework.aop.PointcutAdvisor.getPointcut.

Get the Pointcut that drives this advisor.

Annotations
@Override
setAdviceback to summary
public void setAdvice(Advice advice)
setOrderback to summary
public void setOrder(int order)