class MethodBeforeAdviceAdapter extends java.lang.Object implements AdvisorAdapter, java.io.Serializable
MethodBeforeAdvice
to be used in the Spring AOP framework.| Constructor and Description |
|---|
MethodBeforeAdviceAdapter() |
| Modifier and Type | Method and Description |
|---|---|
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? |
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 BeforeAdviceAdvisorAdapter.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