Class CodegenStubBase

All Implemented Interfaces:
Serializable, Object

public class CodegenStubBase extends Stub
See Also:
  • Field Details

  • Constructor Details

    • CodegenStubBase

      public CodegenStubBase()
  • Method Details

    • readResolve

      private Object readResolve() throws ObjectStreamException
      Throws:
      ObjectStreamException
    • getStubDelegateImpl

      private static StubDelegateImpl getStubDelegateImpl(Object stub)
    • getStubDelegateImplField

      private static StubDelegateImpl getStubDelegateImplField(Object stub)
    • setDefaultDelegate

      private static void setDefaultDelegate(Object stub)
    • readObject

      private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException
      Throws:
      IOException
      ClassNotFoundException
    • _ids

      public 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, 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 Object selfAsBaseClass()
    • invoke

      protected Object invoke(int methodNumber, Object[] args) throws Throwable
      Throws:
      Throwable