|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.aop.framework.adapter.MethodBeforeAdviceAdapter
class MethodBeforeAdviceAdapter
Adapter to enable MethodBeforeAdvice
to be used in the Spring AOP framework.
| Constructor Summary | |
|---|---|
MethodBeforeAdviceAdapter()
|
|
| 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 |
|---|
MethodBeforeAdviceAdapter()
| Method Detail |
|---|
public boolean supportsAdvice(Advice advice)
AdvisorAdaptergetInterceptors method with an Advisor that
contains this advice as an argument?
supportsAdvice in interface AdvisorAdapteradvice - an Advice such as a BeforeAdvice
AdvisorAdapter.getInterceptor(org.springframework.aop.Advisor),
BeforeAdvicepublic MethodInterceptor getInterceptor(Advisor advisor)
AdvisorAdapterDon't worry about any Pointcut contained in the Advisor; the AOP framework will take care of checking the pointcut.
getInterceptor in interface AdvisorAdapteradvisor - 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 | ||||||||