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: AdvisorAdapterRegistry [javadoc | source]

All Known Implementing Classes:
    DefaultAdvisorAdapterRegistry

Interface for registries of Advisor adapters.

This is an SPI interface, not to be implemented by any Spring user.

Method from org.springframework.aop.framework.adapter.AdvisorAdapterRegistry Summary:
getInterceptors,   registerAdvisorAdapter,   wrap
Method from org.springframework.aop.framework.adapter.AdvisorAdapterRegistry Detail:
 public MethodInterceptor[] getInterceptors(Advisor advisor) throws UnknownAdviceTypeException
    Return an array of AOP Alliance MethodInterceptors to allow use of the given Advisor in an interception-based framework.

    Don't worry about the pointcut associated with the Advisor, if it's a PointcutAdvisor: just return an interceptor.

 public  void registerAdvisorAdapter(AdvisorAdapter adapter)
    Register the given AdvisorAdapter. Note that it is not necessary to register adapters for an AOP Alliance Interceptors or Spring Advices: these must be automatically recognized by an AdvisorAdapterRegistry implementation.
 public Advisor wrap(Object advice) throws UnknownAdviceTypeException