Class StubInvocationHandlerImpl

  • All Implemented Interfaces:
    java.lang.reflect.InvocationHandler, org.glassfish.pfl.basic.proxy.LinkedInvocationHandler

    public final class StubInvocationHandlerImpl
    extends java.lang.Object
    implements org.glassfish.pfl.basic.proxy.LinkedInvocationHandler
    • Method Detail

      • setProxy

        public void setProxy​(java.lang.reflect.Proxy self)
        Specified by:
        setProxy in interface org.glassfish.pfl.basic.proxy.LinkedInvocationHandler
      • getProxy

        public java.lang.reflect.Proxy getProxy()
        Specified by:
        getProxy in interface org.glassfish.pfl.basic.proxy.LinkedInvocationHandler
      • isLocal

        private boolean isLocal​(Delegate delegate)
      • invoke

        public java.lang.Object invoke​(java.lang.Object proxy,
                                       java.lang.reflect.Method method,
                                       java.lang.Object[] args)
                                throws java.lang.Throwable
        Specified by:
        invoke in interface java.lang.reflect.InvocationHandler
        Throws:
        java.lang.Throwable
      • takingRemoteBranch

        @InfoMethod
        private void takingRemoteBranch()
      • takingLocalBranch

        @InfoMethod
        private void takingLocalBranch()
      • privateInvoke

        private java.lang.Object privateInvoke​(Delegate delegate,
                                               java.lang.Object proxy,
                                               java.lang.reflect.Method method,
                                               java.lang.Object[] args)
                                        throws java.lang.Throwable
        Invoke the given method with the args and return the result. This may result in a remote invocation.
        Parameters:
        proxy - The proxy used for this class (null if not using java.lang.reflect.Proxy)
        Throws:
        java.lang.Throwable