org.springframework.aop
Interface Advisor
- All Known Subinterfaces:
- AfterReturningAdvisor, BeforeAdvisor, InterceptionAdvisor, InterceptionAroundAdvisor, InterceptionIntroductionAdvisor, IntroductionAdvisor, PointcutAdvisor, ThrowsAdvisor
- public interface Advisor
Base interface holding AOP advice (action to take at a joinpoint)
and a filter determining the applicability of the advice (such as
a pointcut). This interface is not for use by Spring users, but to
allow for commonality in support for different types of advice.
Spring currently supports around advice delivered via method
interception. However, this interface is intended to allow support for
different types of advice, such as before and after advice,
which need not be implemented using interception. Note that these advice
types can be implemented using around advice at present.
- Author:
- Rod Johnson
- Version: $Id: Advisor.java,v 1.3 2004/02/11 10:51:15 jhoeller Exp $
- See Also: InterceptionAroundAdvisor, InterceptionIntroductionAdvisor
| Method Summary |
boolean | isPerInstance() Return whether this advice is associated with a particular instance
(for example, creating a mixin) or is it shared with all instances of
the advised class obtained from the same Spring bean factory. |
isPerInstance
public boolean isPerInstance()
- Return whether this advice is associated with a particular instance
(for example, creating a mixin) or is it shared with all instances of
the advised class obtained from the same Spring bean factory.
Note that this method is not currently used by the framework.
Use singleton/prototype bean definitions or appropriate programmatic
proxy creation to ensure that Advisors have the correct lifecycle model.