|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.aop.framework.adapter.ThrowsAdviceAdapter
class ThrowsAdviceAdapter
Adapter to enable MethodBeforeAdvice
to be used in the Spring AOP framework.
Constructor Summary | |
---|---|
ThrowsAdviceAdapter()
|
Method Summary | |
---|---|
MethodInterceptor |
getInterceptor(Advisor advisor)
Return an AOP Alliance MethodInterceptor exposing the behavior of the given advice to an interception-based AOP framework. |
boolean |
supportsAdvice(Advice advice)
Does this adapter understand this advice object? Is it valid to invoke the getInterceptors method with an Advisor that
contains this advice as an argument? |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
ThrowsAdviceAdapter()
Method Detail |
---|
public boolean supportsAdvice(Advice advice)
AdvisorAdapter
getInterceptors
method with an Advisor that
contains this advice as an argument?
supportsAdvice
in interface AdvisorAdapter
advice
- an Advice such as a BeforeAdvice
AdvisorAdapter.getInterceptor(org.springframework.aop.Advisor)
,
BeforeAdvice
public MethodInterceptor getInterceptor(Advisor advisor)
AdvisorAdapter
Don't worry about any Pointcut contained in the Advisor; the AOP framework will take care of checking the pointcut.
getInterceptor
in interface AdvisorAdapter
advisor
- the Advisor. The supportsAdvice() method must have
returned true on this object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |