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 ORBprotected 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 EhandleMissingFactory(int id, InputStream is) voidregisterFactory(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:IdentifiableFactoryFinderIf 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:
createin interfaceIdentifiableFactoryFinder<E extends Identifiable>- Parameters:
id- id of registered factoryis- stream to read from- Returns:
Identifiablefound
-
registerFactory
Description copied from interface:IdentifiableFactoryFinderRegister a factory for the given id.- Specified by:
registerFactoryin interfaceIdentifiableFactoryFinder<E extends Identifiable>- Parameters:
factory- factory to register
-