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 AdvisorAdapter.
Return an Advisor wrapping the given advice.
public Advisor wrap(java.lang.Object adviceObject) throws UnknownAdviceTypeException
adviceObject- 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
public org.aopalliance.intercept.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.
public void registerAdvisorAdapter(AdvisorAdapter adapter)