Package com.sun.corba.ee.spi.ior
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 java.lang.Object implements IdentifiableFactory<E>
-
-
Field Summary
Fields Modifier and Type Field Description private int
id
-
Constructor Summary
Constructors Constructor Description EncapsulationFactoryBase(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)
-
-
-
Method Detail
-
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 interfaceIdentifiableFactory<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 interfaceIdentifiableFactory<E extends Identifiable>
- Parameters:
orb
- ORB to use for creationin
- stream to construct object from- Returns:
- constructed Identifiable
-
readContents
protected abstract E readContents(InputStream is)
-
-