Package com.sun.corba.ee.spi.ior
Interface IdentifiableFactoryFinder<E extends Identifiable>
- All Known Subinterfaces:
TaggedComponentFactoryFinder
- All Known Implementing Classes:
IdentifiableFactoryFinderBase
,TaggedComponentFactoryFinderImpl
,TaggedProfileFactoryFinderImpl
,TaggedProfileTemplateFactoryFinderImpl
public interface IdentifiableFactoryFinder<E extends Identifiable>
Interface used to manage a group of related IdentifiableFactory instances.
Factories can be registered, and invoked through a create method, which
must be implemented to handle the case of no registered factory
appropriately.
-
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.void
registerFactory
(IdentifiableFactory<E> factory) Register a factory for the given id.
-
Method Details
-
create
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.- Parameters:
id
- id of registered factoryis
- stream to read from- Returns:
Identifiable
found
-
registerFactory
Register a factory for the given id.- Parameters:
factory
- factory to register
-