Class EncapsulationFactoryBase<E extends Identifiable>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int id  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      E create​(ORB orb, InputStream in)
      Construct the appropriate Identifiable object with the given id from the InputStream is.
      int getId()
      Return the id of this factory, which is the id of the result of any create call.
      protected abstract E readContents​(InputStream is)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • id

        private int id
    • Constructor Detail

      • EncapsulationFactoryBase

        public EncapsulationFactoryBase​(int id)
    • Method Detail

      • 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)