Save This Page
Home » spring-framework-2.5.5-with-dependencies » org.springframework » aop » framework » adapter » [javadoc | source]
org.springframework.aop.framework.adapter
public interface: AdvisorAdapter [javadoc | source]

All Known Implementing Classes:
    MethodBeforeAdviceAdapter, ThrowsAdviceAdapter, BeforeAdviceAdapter, AfterReturningAdviceAdapter

Interface allowing extension to the Spring AOP framework to allow handling of new Advisors and Advice types.

Implementing objects can create AOP Alliance Interceptors from custom advice types, enabling these advice types to be used in the Spring AOP framework, which uses interception under the covers.

There is no need for most Spring users to implement this interface; do so only if you need to introduce more Advisor or Advice types to Spring.

Method from org.springframework.aop.framework.adapter.AdvisorAdapter Summary:
getInterceptor,   supportsAdvice
Method from org.springframework.aop.framework.adapter.AdvisorAdapter Detail:
 public MethodInterceptor getInterceptor(Advisor advisor)
    Return an AOP Alliance MethodInterceptor exposing the behavior of the given advice to an interception-based AOP framework.

    Don't worry about any Pointcut contained in the Advisor; the AOP framework will take care of checking the pointcut.

 public boolean supportsAdvice(Advice advice)
    Does this adapter understand this advice object? Is it valid to invoke the getInterceptors method with an Advisor that contains this advice as an argument?