Class ObjectReferenceFactoryImpl

java.lang.Object
com.sun.corba.ee.impl.ior.ObjectReferenceProducerBase
com.sun.corba.ee.impl.ior.ObjectReferenceFactoryImpl
All Implemented Interfaces:
Serializable, IDLEntity, Streamable, StreamableValue, ValueBase, ObjectReferenceFactory

public class ObjectReferenceFactoryImpl extends ObjectReferenceProducerBase implements ObjectReferenceFactory, StreamableValue
This is an implementation of the ObjectReferenceFactory abstract value type defined by the portable interceptors IDL. Note that this is a direct Java implementation of the abstract value type: there is no stateful value type defined in IDL, since defining the state in IDL is awkward and inefficient. The best way to define the state is to use internal data structures that can be written to and read from CORBA streams.
See Also:
  • Field Details

  • Constructor Details

    • ObjectReferenceFactoryImpl

      public ObjectReferenceFactoryImpl(InputStream is)
    • ObjectReferenceFactoryImpl

      public ObjectReferenceFactoryImpl(ORB orb, IORTemplateList iortemps)
  • Method Details

    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • _truncatable_ids

      public String[] _truncatable_ids()
      Description copied from interface: ValueBase
      Provides truncatable repository ids.
      Specified by:
      _truncatable_ids in interface ValueBase
      Returns:
      a String array--list of truncatable repository ids.
    • _type

      public TypeCode _type()
      Description copied from interface: Streamable
      Retrieves the TypeCode object corresponding to the value in the value field of the Holder.
      Specified by:
      _type in interface Streamable
      Returns:
      the TypeCode object for the value held in the holder
    • _read

      public void _read(InputStream is)
      Read the data into a (presumably) empty ObjectReferenceFactoryImpl. This sets the orb to the ORB of the InputStream.
      Specified by:
      _read in interface Streamable
      Parameters:
      is - the InputStream that represents the CDR data from the wire.
    • _write

      public void _write(OutputStream os)
      Write the state to the OutputStream.
      Specified by:
      _write in interface Streamable
      Parameters:
      os - the CDR OutputStream
    • getIORFactory

      public IORFactory getIORFactory()
      Specified by:
      getIORFactory in class ObjectReferenceProducerBase
    • getIORTemplateList

      public IORTemplateList getIORTemplateList()
      Specified by:
      getIORTemplateList in class ObjectReferenceProducerBase