public interface AdvisorAdapterRegistry
This is an SPI interface, not to be implemented by any Spring user.
|Modifier and Type||Method and Description|
Return an array of AOP Alliance MethodInterceptors to allow use of the given Advisor in an interception-based framework.
Register the given
Advisor wrap(Object advice) throws UnknownAdviceTypeException
Advisorwrapping the given advice.
advice- an object that should be an advice
null; if the advice parameter is an Advisor, it is to be returned as-is)
UnknownAdviceTypeException- if no registered advisor adapter can wrap the supposed advice
MethodInterceptor getInterceptors(Advisor advisor) throws UnknownAdviceTypeException
advisor- the Advisor to find an interceptor for
UnknownAdviceTypeException- if the Advisor type is not understood by any registered AdvisorAdapter
void 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
adapter- an AdvisorAdapter that understands particular Advisor or Advice types