Class InvocationInvoker

java.lang.Object
org.aoju.bus.proxy.invoker.InvocationInvoker
All Implemented Interfaces:
Invocation, ProxyChain

public class InvocationInvoker extends Object implements ProxyChain
切面实现类
Since:
Java 17+
Author:
Kimi Liu
  • Constructor Details

    • InvocationInvoker

      public InvocationInvoker(org.aspectj.lang.ProceedingJoinPoint joinPoint)
  • Method Details

    • getNames

      public Object[] getNames()
      获取拦截的方法的参数列表
      Specified by:
      getNames in interface ProxyChain
      Returns:
      返回参数列表
    • getArguments

      public Object[] getArguments()
      获取拦截的方法的参数列表
      Specified by:
      getArguments in interface Invocation
      Returns:
      返回参数列表
    • getProxy

      public Object getProxy()
      获取要拦截的目标实例
      Specified by:
      getProxy in interface Invocation
      Returns:
      返回目标实例
    • getMethod

      public Method getMethod()
      获取拦截的方法
      Specified by:
      getMethod in interface Invocation
      Returns:
      获取拦截的方法
    • proceed

      public Object proceed() throws Throwable
      执行方法
      Specified by:
      proceed in interface Invocation
      Returns:
      返回对象
      Throws:
      Throwable - 抛出异常
    • proceed

      public Object proceed(Object[] arguments) throws Throwable
      执行方法
      Specified by:
      proceed in interface ProxyChain
      Parameters:
      arguments - 参数
      Returns:
      返回对象
      Throws:
      Throwable - 抛出异常