Package com.sun.corba.ee.spi.ior
Provides access to the components and profiles in an IOR without the overhead of CDR encoding.
The abstract model of IORs works as follows:
- An IOR has a type ID string, and contains TaggedProfile instances.
- An IIOPProfile isA TaggedProfile.
- An IIOPProfile is composed of an IIOPProfileTemplate and an object ID.
- An IIOPProfileTemplate has an ObjectKeyTemplate, and contains TaggedComponents.
- A TaggedComponent has an ID, and can be written to an OuputStream.
- A TaggedComponentFactory reads a TaggedComponent from an InputStream.
In all cases, containment is represented by having the appropriate interface (IOR and IIOPProfileTemplate above) extend java.util.List. This makes it easy to use all of the facilities in the Java collections framework with IORs. However, note that all objects available through these APIs are immutable. Thus all list update operations through UnsupportedOperationException, and list iterators cannot modify the underlying list.
Templates are used because the basic object adapter model for object creation is to establish all properties of an IOR (except for type and object ID) when the object adapter is created. This has been present for the POA essentially from the beginning, since policies can only be passed to create_POA, and cannot be changed on an existing POA. The Portable Interceptors work has also made this clear, since the IOR interceptor runs only when an object adapter is created, which is the only time that user code can add tagged components to an IOR.
-
Interface Summary Interface Description Identifiable This interface represents an entity that can be written to an OutputStream and has an identity that is represented by an integer.IdentifiableFactory<E extends Identifiable> Factory interface for creating Identifiables.IdentifiableFactoryFinder<E extends Identifiable> Interface used to manage a group of related IdentifiableFactory instances.IOR An IOR is represented as a list of profiles.IORFactory An IORFactory provides the capability of creating IORs.IORTemplate An IORTemplate provides all of the data necessary to create an IOR except for the typeId and ObjectId.IORTemplateList An IORTemplateList is a list of IORTemplate instances.MakeImmutable ObjectAdapterId This is the object adapter ID for an object adapter.ObjectId ObjectKey The full object key, which is contained in an IIOPProfile.ObjectKeyFactory Construct ObjectKey and ObjectKeyTemplate instances from their CDR-marshalled representation.ObjectKeyTemplate An ObjectKeyTemplate represents the part of an Object Key that corresponds to the object adapter used to create an object reference.TaggedComponent Generic interface for all tagged components.TaggedComponentFactoryFinder TaggedProfile TaggedProfile represents a tagged profile in an IOR.TaggedProfileTemplate Base template for creating TaggedProfiles.Writeable This interface represents an entity that can be written to an OutputStream.WriteContents -
Class Summary Class Description EncapsulationFactoryBase<E extends Identifiable> IdentifiableBase Provide support for properly reading and writing Identifiable objects that are also encapsulations (tagged profiles and components).IdentifiableContainerBase<E extends Identifiable> Convenience class for defining objects that contain lists of Identifiables.IORFactories This class provides a number of factory methods for creating various IOR SPI classes which are not subclassed for specific protocols.TaggedComponentBase Base class to use for implementing TaggedComponents.TaggedProfileTemplateBase