public interface AdvisorAdapterRegistry
This is an SPI interface, not to be implemented by any Spring user.
| Modifier and Type | Method and Description | 
|---|---|
| MethodInterceptor[] | getInterceptors(Advisor advisor)Return an array of AOP Alliance MethodInterceptors to allow use of the
 given Advisor in an interception-based framework. | 
| void | registerAdvisorAdapter(AdvisorAdapter adapter)Register the given  AdvisorAdapter. | 
| Advisor | wrap(Object advice)Return an  Advisorwrapping the given advice. | 
Advisor wrap(Object advice) throws UnknownAdviceTypeException
Advisor wrapping the given advice.
 Should by default at least support
 MethodInterceptor,
 MethodBeforeAdvice,
 AfterReturningAdvice,
 ThrowsAdvice.
advice - an object that should be an advicenull;
 if the advice parameter is an Advisor, it is to be returned as-is)UnknownAdviceTypeException - if no registered advisor adapter
 can wrap the supposed adviceMethodInterceptor[] getInterceptors(Advisor advisor) throws UnknownAdviceTypeException
Don't worry about the pointcut associated with the Advisor, if it is
 a PointcutAdvisor: just return an interceptor.
advisor - the Advisor to find an interceptor forUnknownAdviceTypeException - if the Advisor type is
 not understood by any registered AdvisorAdaptervoid registerAdvisorAdapter(AdvisorAdapter adapter)
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.adapter - an AdvisorAdapter that understands particular Advisor or Advice types