Class EncapsulationFactoryBase<E extends Identifiable>

java.lang.Object
com.sun.corba.ee.spi.ior.EncapsulationFactoryBase<E>
All Implemented Interfaces:
IdentifiableFactory<E>

public abstract class EncapsulationFactoryBase<E extends Identifiable> extends Object implements IdentifiableFactory<E>
  • Field Details

    • id

      private int id
  • Constructor Details

    • EncapsulationFactoryBase

      public EncapsulationFactoryBase(int id)
  • Method Details

    • getId

      public int getId()
      Description copied from interface: IdentifiableFactory
      Return the id of this factory, which is the id of the result of any create call.
      Specified by:
      getId in interface IdentifiableFactory<E extends Identifiable>
      Returns:
      factory id
    • create

      public final E create(ORB orb, InputStream in)
      Description copied from interface: IdentifiableFactory
      Construct the appropriate Identifiable object with the given id from the InputStream is.
      Specified by:
      create in interface IdentifiableFactory<E extends Identifiable>
      Parameters:
      orb - ORB to use for creation
      in - stream to construct object from
      Returns:
      constructed Identifiable
    • readContents

      protected abstract E readContents(InputStream is)