Spring Framework

org.springframework.aop.support
Class AbstractGenericPointcutAdvisor

java.lang.Object
  extended by org.springframework.aop.support.AbstractPointcutAdvisor
      extended by org.springframework.aop.support.AbstractGenericPointcutAdvisor
All Implemented Interfaces:
java.io.Serializable, Advisor, PointcutAdvisor, Ordered
Direct Known Subclasses:
AspectJExpressionPointcutAdvisor, DefaultPointcutAdvisor, NameMatchMethodPointcutAdvisor, RegexpMethodPointcutAdvisor

public abstract class AbstractGenericPointcutAdvisor
extends AbstractPointcutAdvisor

Abstract generic PointcutAdvisor that allows for any Advice to be configured.

Since:
2.0
Author:
Juergen Hoeller
See Also:
setAdvice(org.aopalliance.aop.Advice), DefaultPointcutAdvisor, Serialized Form

Field Summary
 
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
 
Constructor Summary
AbstractGenericPointcutAdvisor()
           
 
Method Summary
 org.aopalliance.aop.Advice getAdvice()
          Return the advice part of this aspect.
 void setAdvice(org.aopalliance.aop.Advice advice)
          Specify the advice that this advisor should apply.
 java.lang.String toString()
           
 
Methods inherited from class org.springframework.aop.support.AbstractPointcutAdvisor
equals, getOrder, hashCode, isPerInstance, setOrder
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.springframework.aop.PointcutAdvisor
getPointcut
 

Constructor Detail

AbstractGenericPointcutAdvisor

public AbstractGenericPointcutAdvisor()
Method Detail

setAdvice

public void setAdvice(org.aopalliance.aop.Advice advice)
Specify the advice that this advisor should apply.


getAdvice

public org.aopalliance.aop.Advice getAdvice()
Description copied from interface: Advisor
Return the advice part of this aspect. An advice may be an interceptor, a before advice, a throws advice, etc.

Returns:
the advice that should apply if the pointcut matches
See Also:
MethodInterceptor, BeforeAdvice, ThrowsAdvice, AfterReturningAdvice

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Spring Framework