|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AdvisorAdapterRegistry
Interface for registries of AdvisorAdapters.
This is an SPI interface, that should not need to be implemented by any Spring user.
Method Summary | |
---|---|
Interceptor[] |
getInterceptors(Advisor advisor)
Return an array of AOP Alliance Interceptors 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 Advisor wrapping the given advice. |
Method Detail |
---|
Advisor wrap(Object advice) throws UnknownAdviceTypeException
Should by default at least support Interceptor, BeforeAdvice, AfterReturningAdvice, ThrowsAdvice.
advice
- object that should be an advice
UnknownAdviceTypeException
- if no registered AdvisorAdapter
can wrap the supposed adviceInterceptor
,
BeforeAdvice
,
AfterReturningAdvice
,
ThrowsAdvice
Interceptor[] 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |