public class MethodBeforeAdviceInterceptor extends Object implements MethodInterceptor, BeforeAdvice, Serializable
MethodBeforeAdvice.
Used internally by the AOP framework; application developers should not need
to use this class directly.AfterReturningAdviceInterceptor,
ThrowsAdviceInterceptor,
序列化表格| 构造器和说明 |
|---|
MethodBeforeAdviceInterceptor(MethodBeforeAdvice advice)
Create a new MethodBeforeAdviceInterceptor for the given advice.
|
public MethodBeforeAdviceInterceptor(MethodBeforeAdvice advice)
advice - the MethodBeforeAdvice to wrappublic Object invoke(MethodInvocation mi) throws Throwable
MethodInterceptorinvoke 在接口中 MethodInterceptormi - 主要实现类:ReflectiveMethodInvocationThrowable