Package api.log.aop

Class MethodAdvice

java.lang.Object
api.log.aop.MethodAdvice
All Implemented Interfaces:
org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor

public class MethodAdvice extends Object implements org.aopalliance.intercept.MethodInterceptor
方法增强
Author:
chenenwei
  • Constructor Details

    • MethodAdvice

      public MethodAdvice()
  • Method Details

    • invoke

      public Object invoke(org.aopalliance.intercept.MethodInvocation invocation) throws Throwable
      拦截方法
      Specified by:
      invoke in interface org.aopalliance.intercept.MethodInterceptor
      Parameters:
      invocation - 方法调用
      Returns:
      返回值
      Throws:
      Throwable - 异常