Class InvocationHandlerFactoryImpl.CustomCompositeInvocationHandlerImpl

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.reflect.InvocationHandler, org.glassfish.pfl.basic.proxy.CompositeInvocationHandler, org.glassfish.pfl.basic.proxy.LinkedInvocationHandler
    Enclosing class:
    InvocationHandlerFactoryImpl

    private static class InvocationHandlerFactoryImpl.CustomCompositeInvocationHandlerImpl
    extends org.glassfish.pfl.basic.proxy.CompositeInvocationHandlerImpl
    implements org.glassfish.pfl.basic.proxy.LinkedInvocationHandler, java.io.Serializable
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private DynamicStub stub  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.reflect.Proxy getProxy()  
      void setProxy​(java.lang.reflect.Proxy proxy)  
      java.lang.Object writeReplace()
      Return the stub, which will actually be written to the stream.
      • Methods inherited from class org.glassfish.pfl.basic.proxy.CompositeInvocationHandlerImpl

        addInvocationHandler, invoke, setDefaultHandler
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.reflect.InvocationHandler

        invoke
    • Constructor Detail

      • CustomCompositeInvocationHandlerImpl

        public CustomCompositeInvocationHandlerImpl​(DynamicStub stub)
    • Method Detail

      • setProxy

        public void setProxy​(java.lang.reflect.Proxy proxy)
        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
      • writeReplace

        public java.lang.Object writeReplace()
                                      throws java.io.ObjectStreamException
        Return the stub, which will actually be written to the stream. It will be custom marshaled, with the actual writing done in StubIORImpl. There is a corresponding readResolve method on DynamicStubImpl which will re-create the full invocation handler on read, and return the invocation handler on the readResolve method.
        Throws:
        java.io.ObjectStreamException