|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for registries of AdvisorAdapters.
This is an SPI interface, that should not need to be implemented
by any Spring user.
Method Summary | |
org.aopalliance.intercept.Interceptor |
getInterceptor(Advisor advisor)
Return an AOP Alliance Interceptor to allow use of the given Advisor in an interception-based framework. |
void |
registerAdvisorAdapter(AdvisorAdapter adapter)
Register the given AdvisorAdapter. |
Advisor |
wrap(java.lang.Object advice)
Return an Advisor wrapping the given advice |
Method Detail |
public Advisor wrap(java.lang.Object advice) throws UnknownAdviceTypeException
advice
- object that should be an advice, such as
BeforeAdvice or ThrowsAdvice.
UnknownAdviceTypeException
- if no registered AdvisorAdapter
can wrap the supposed advicepublic org.aopalliance.intercept.Interceptor getInterceptor(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)
adapter
- AdvisorAdapter that understands particular Advisor
and Advice types.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |