接口 ProxyMethodInvocation

    • 方法详细资料

      • getProxy

        Object getProxy()
        Return the proxy that this method invocation was made through.
        返回:
        the original proxy object
      • invocableClone

        MethodInvocation invocableClone()
        Create a clone of this object. If cloning is done before proceed() is invoked on this object, proceed() can be invoked once per clone to invoke the joinpoint (and the rest of the advice chain) more than once.
        返回:
        an invocable clone of this invocation. proceed() can be called once per clone.
      • invocableClone

        MethodInvocation invocableClone​(Object... arguments)
        Create a clone of this object. If cloning is done before proceed() is invoked on this object, proceed() can be invoked once per clone to invoke the joinpoint (and the rest of the advice chain) more than once.
        参数:
        arguments - the arguments that the cloned invocation is supposed to use, overriding the original arguments
        返回:
        an invocable clone of this invocation. proceed() can be called once per clone.
      • setArguments

        void setArguments​(Object... arguments)
        Set the arguments to be used on subsequent invocations in the any advice in this chain.
        参数:
        arguments - the argument array
      • setUserAttribute

        void setUserAttribute​(String key,
                              Object value)
        Add the specified user attribute with the given value to this invocation.

        Such attributes are not used within the AOP framework itself. They are just kept as part of the invocation object, for use in special interceptors.

        参数:
        key - the name of the attribute
        value - the value of the attribute, or null to reset it