public class DefaultAdvisorAdapterRegistry extends java.lang.Object implements AdvisorAdapterRegistry, java.io.Serializable
|Constructor and Description|
Create a new DefaultAdvisorAdapterRegistry, registering well-known adapters.
|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
public Advisor wrap(java.lang.Object adviceObject) throws UnknownAdviceTypeException
Advisorwrapping the given advice.
adviceObject- 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
public MethodInterceptor getInterceptors(Advisor advisor) throws UnknownAdviceTypeException
advisor- Advisor to find an interceptor for
UnknownAdviceTypeException- if the Advisor type is not understood by any registered AdvisorAdapter
public 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