The Spring Framework

org.springframework.aop.aspectj
Class AspectJPointcutAdvisor

java.lang.Object
  extended by org.springframework.aop.support.AbstractPointcutAdvisor
      extended by org.springframework.aop.support.AbstractGenericPointcutAdvisor
          extended by org.springframework.aop.support.DefaultPointcutAdvisor
              extended by org.springframework.aop.aspectj.AspectJPointcutAdvisor
All Implemented Interfaces:
Serializable, Advisor, PointcutAdvisor, Ordered

public class AspectJPointcutAdvisor
extends DefaultPointcutAdvisor

AspectJPointcutAdvisor enforces the rule that the pointcut reference held by this advisor must be to the same pointcut instance as that held by the associated (AspectJ) advice.

Since:
2.0
Author:
Adrian Colyer
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
 
Constructor Summary
AspectJPointcutAdvisor()
           
 
Method Summary
 void setAdvice(org.aopalliance.aop.Advice advice)
          Ensure pointcut instance in this advisor and the associated advice point to the same instance.
 void setPointcut(Pointcut pointcut)
          Ensure pointcut instance in this advisor and the associated advice point to the same instance.
 
Methods inherited from class org.springframework.aop.support.DefaultPointcutAdvisor
getPointcut, toString
 
Methods inherited from class org.springframework.aop.support.AbstractGenericPointcutAdvisor
getAdvice
 
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
 

Constructor Detail

AspectJPointcutAdvisor

public AspectJPointcutAdvisor()
Method Detail

setPointcut

public void setPointcut(Pointcut pointcut)
Ensure pointcut instance in this advisor and the associated advice point to the same instance.

Overrides:
setPointcut in class DefaultPointcutAdvisor

setAdvice

public void setAdvice(org.aopalliance.aop.Advice advice)
Ensure pointcut instance in this advisor and the associated advice point to the same instance.

Overrides:
setAdvice in class AbstractGenericPointcutAdvisor

The Spring Framework

Copyright © 2002-2006 The Spring Framework.