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)
AdvisorAdapter
getInterceptors
method with an Advisor that
contains this advice as an argument?supportsAdvice
in interface AdvisorAdapter
advice
- an Advice such as a BeforeAdviceAdvisorAdapter.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