程序包 infra.aop

接口 MethodBeforeAdvice

所有超级接口:
Advice, BeforeAdvice
所有已知实现类:
AspectJMethodBeforeAdvice

public interface MethodBeforeAdvice extends BeforeAdvice
Advice invoked before a method is invoked. Such advices cannot prevent the method call proceeding, unless they throw a Throwable.
从以下版本开始:
3.0
作者:
Rod Johnson, TODAY 2021/2/20 22:16
另请参阅:
  • 方法概要

    修饰符和类型
    方法
    说明
    void
    Callback before a given method is invoked.
  • 方法详细资料

    • before

      void before(MethodInvocation invocation) throws Throwable
      Callback before a given method is invoked.
      参数:
      invocation - the method invocation join-point
      抛出:
      Throwable - if this object wishes to abort the call. Any exception thrown will be returned to the caller if it's allowed by the method signature. Otherwise the exception will be wrapped as a runtime exception.