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 AdvisorAdapter.
Return an Advisor wrapping the given advice.
Advisor wrap(Object advice) throws UnknownAdviceTypeException
advice- object that should be an advice
null. If the advice parameter is an Advisor, return it.
UnknownAdviceTypeException- if no registered advisor adapter can wrap the supposed advice
MethodInterceptor getInterceptors(Advisor advisor) throws UnknownAdviceTypeException
Don't worry about the pointcut associated with the Advisor, if it's a PointcutAdvisor: just return an interceptor.
advisor- Advisor to find an interceptor for
UnknownAdviceTypeException- if the Advisor type is not understood by any registered AdvisorAdapter.
void registerAdvisorAdapter(AdvisorAdapter adapter)
adapter- AdvisorAdapter that understands a particular Advisor or Advice types