类 MethodInvocationProceedingJoinPoint

java.lang.Object
infra.aop.aspectj.MethodInvocationProceedingJoinPoint
所有已实现的接口:
org.aspectj.lang.JoinPoint, org.aspectj.lang.JoinPoint.StaticPart, org.aspectj.lang.ProceedingJoinPoint

public class MethodInvocationProceedingJoinPoint extends Object implements org.aspectj.lang.ProceedingJoinPoint, org.aspectj.lang.JoinPoint.StaticPart
An implementation of the AspectJ ProceedingJoinPoint interface wrapping an AOP Alliance MethodInvocation.

Note: The getThis() method returns the current Framework AOP proxy. The getTarget() method returns the current Framework AOP target (which may be null if there is no target instance) as a plain POJO without any advice. If you want to call the object and have the advice take effect, use getThis(). A common example is casting the object to an introduced interface in the implementation of an introduction. There is no such distinction between target and proxy in AspectJ itself.

从以下版本开始:
4.0
作者:
Rod Johnson, Juergen Hoeller, Adrian Colyer, Ramnivas Laddad, Harry Yang
  • 字段详细资料

    • parameterNameDiscoverer

      private static final infra.core.ParameterNameDiscoverer parameterNameDiscoverer
    • methodInvocation

      private final ProxyMethodInvocation methodInvocation
    • args

      @Nullable private Object[] args
    • signature

      @Nullable private org.aspectj.lang.Signature signature
      Lazily initialized signature object.
    • sourceLocation

      @Nullable private SourceLocation sourceLocation
      Lazily initialized source location object.
  • 构造器详细资料

    • MethodInvocationProceedingJoinPoint

      public MethodInvocationProceedingJoinPoint(ProxyMethodInvocation methodInvocation)
      Create a new MethodInvocationProceedingJoinPoint, wrapping the given Framework ProxyMethodInvocation object.
      参数:
      methodInvocation - the Framework ProxyMethodInvocation object
  • 方法详细资料

    • set$AroundClosure

      public void set$AroundClosure(org.aspectj.runtime.internal.AroundClosure aroundClosure)
      指定者:
      set$AroundClosure 在接口中 org.aspectj.lang.ProceedingJoinPoint
    • proceed

      @Nullable public Object proceed() throws Throwable
      指定者:
      proceed 在接口中 org.aspectj.lang.ProceedingJoinPoint
      抛出:
      Throwable
    • proceed

      @Nullable public Object proceed(Object[] arguments) throws Throwable
      指定者:
      proceed 在接口中 org.aspectj.lang.ProceedingJoinPoint
      抛出:
      Throwable
    • getThis

      public Object getThis()
      Returns the Framework AOP proxy. Cannot be null.
      指定者:
      getThis 在接口中 org.aspectj.lang.JoinPoint
    • getTarget

      @Nullable public Object getTarget()
      Returns the Framework AOP target. May be null if there is no target.
      指定者:
      getTarget 在接口中 org.aspectj.lang.JoinPoint
    • getArgs

      public Object[] getArgs()
      指定者:
      getArgs 在接口中 org.aspectj.lang.JoinPoint
    • getSignature

      public org.aspectj.lang.Signature getSignature()
      指定者:
      getSignature 在接口中 org.aspectj.lang.JoinPoint
      指定者:
      getSignature 在接口中 org.aspectj.lang.JoinPoint.StaticPart
    • getSourceLocation

      public SourceLocation getSourceLocation()
      指定者:
      getSourceLocation 在接口中 org.aspectj.lang.JoinPoint
      指定者:
      getSourceLocation 在接口中 org.aspectj.lang.JoinPoint.StaticPart
    • getKind

      public String getKind()
      指定者:
      getKind 在接口中 org.aspectj.lang.JoinPoint
      指定者:
      getKind 在接口中 org.aspectj.lang.JoinPoint.StaticPart
    • getId

      public int getId()
      指定者:
      getId 在接口中 org.aspectj.lang.JoinPoint.StaticPart
    • getStaticPart

      public org.aspectj.lang.JoinPoint.StaticPart getStaticPart()
      指定者:
      getStaticPart 在接口中 org.aspectj.lang.JoinPoint
    • toShortString

      public String toShortString()
      指定者:
      toShortString 在接口中 org.aspectj.lang.JoinPoint
      指定者:
      toShortString 在接口中 org.aspectj.lang.JoinPoint.StaticPart
    • toLongString

      public String toLongString()
      指定者:
      toLongString 在接口中 org.aspectj.lang.JoinPoint
      指定者:
      toLongString 在接口中 org.aspectj.lang.JoinPoint.StaticPart
    • toString

      public String toString()
      指定者:
      toString 在接口中 org.aspectj.lang.JoinPoint
      指定者:
      toString 在接口中 org.aspectj.lang.JoinPoint.StaticPart
      覆盖:
      toString 在类中 Object