Class CodegenStubBase

  • All Implemented Interfaces:
    java.io.Serializable, Object

    public class CodegenStubBase
    extends Stub
    See Also:
    Serialized Form
    • Field Detail

      • typeIds

        private transient java.lang.String[] typeIds
      • methods

        private transient java.lang.reflect.Method[] methods
      • handler

        private transient java.lang.reflect.InvocationHandler handler
      • setDefaultDelegateMethod

        private static java.lang.reflect.Method setDefaultDelegateMethod
    • Constructor Detail

      • CodegenStubBase

        public CodegenStubBase()
    • Method Detail

      • readResolve

        private java.lang.Object readResolve()
                                      throws java.io.ObjectStreamException
        Throws:
        java.io.ObjectStreamException
      • setDefaultDelegate

        private static void setDefaultDelegate​(Object stub)
      • readObject

        private void readObject​(java.io.ObjectInputStream stream)
                         throws java.io.IOException,
                                java.lang.ClassNotFoundException
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException
      • _ids

        public java.lang.String[] _ids()
        Description copied from class: ObjectImpl
        Retrieves a string array containing the repository identifiers supported by this ObjectImpl object. For example, for a stub, this method returns information about all the interfaces supported by the stub.
        Specified by:
        _ids in class ObjectImpl
        Returns:
        the array of all repository identifiers supported by this ObjectImpl instance
      • initialize

        public void initialize​(PresentationManager.ClassData classData,
                               java.lang.reflect.InvocationHandler handler)
        Must be called to complete the initialization of the stub. Note that we have mutual dependence between the InvocationHandler and the Stub: the InvocationHandler needs the stub in order to get the delegate, and the Stub needs the InvocationHandler to perform an invocation. We resolve this dependency by constructing the Stub first, using the stub to construct the InvocationHandler, and then completing the initialization of the Stub by calling initialize.
        Parameters:
        classData - ClassData for codegen
        handler - InvocationHandler to use
      • selfAsBaseClass

        protected java.lang.Object selfAsBaseClass()
      • invoke

        protected java.lang.Object invoke​(int methodNumber,
                                          java.lang.Object[] args)
                                   throws java.lang.Throwable
        Throws:
        java.lang.Throwable