Package com.sun.corba.ee.impl.ior
Class IdentifiableFactoryFinderBase<E extends Identifiable>
java.lang.Object
com.sun.corba.ee.impl.ior.IdentifiableFactoryFinderBase<E>
- All Implemented Interfaces:
IdentifiableFactoryFinder<E>
- Direct Known Subclasses:
TaggedComponentFactoryFinderImpl
,TaggedProfileFactoryFinderImpl
,TaggedProfileTemplateFactoryFinderImpl
public abstract class IdentifiableFactoryFinderBase<E extends Identifiable>
extends Object
implements IdentifiableFactoryFinder<E>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Map
<Integer, IdentifiableFactory<E>> private ORB
protected static final IORSystemException
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate
(int id, InputStream is) If there is a registered factory for id, use it to read an Identifiable from is.protected IdentifiableFactory
<E> getFactory
(int id) abstract E
handleMissingFactory
(int id, InputStream is) void
registerFactory
(IdentifiableFactory<E> factory) Register a factory for the given id.
-
Field Details
-
wrapper
-
orb
-
map
-
-
Constructor Details
-
IdentifiableFactoryFinderBase
-
-
Method Details
-
getFactory
-
handleMissingFactory
-
create
Description copied from interface:IdentifiableFactoryFinder
If there is a registered factory for id, use it to read an Identifiable from is. Otherwise create an appropriate generic container, or throw an error. The type of generic container, or error behavior is a property of the implementation.- Specified by:
create
in interfaceIdentifiableFactoryFinder<E extends Identifiable>
- Parameters:
id
- id of registered factoryis
- stream to read from- Returns:
Identifiable
found
-
registerFactory
Description copied from interface:IdentifiableFactoryFinder
Register a factory for the given id.- Specified by:
registerFactory
in interfaceIdentifiableFactoryFinder<E extends Identifiable>
- Parameters:
factory
- factory to register
-