Package com.sun.corba.ee.spi.ior
Class IORFactories
- java.lang.Object
-
- com.sun.corba.ee.spi.ior.IORFactories
-
public class IORFactories extends java.lang.Object
This class provides a number of factory methods for creating various IOR SPI classes which are not subclassed for specific protocols. The following types must be created using this class:- ObjectId
- ObjectKey
- IOR
- IORTemplate
-
-
Constructor Summary
Constructors Modifier Constructor Description private
IORFactories()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IORFactory
getIORFactory(ObjectReferenceTemplate ort)
static IORTemplateList
getIORTemplateList(ObjectReferenceFactory orf)
static IOR
makeIOR(ORB orb)
Create an empty IOR for the given orb with a null typeid.static IOR
makeIOR(ORB orb, java.lang.String typeid)
Create an empty IOR for the given orb and typeid.static IOR
makeIOR(ORB orb, InputStream is)
Read an IOR from an InputStream.static IORTemplate
makeIORTemplate(ObjectKeyTemplate oktemp)
Create an IORTemplate with the given ObjectKeyTemplate.static IORTemplate
makeIORTemplate(InputStream is)
Read an IORTemplate from an InputStream.static IORTemplateList
makeIORTemplateList()
static IORTemplateList
makeIORTemplateList(InputStream is)
static ObjectId
makeObjectId(byte[] id)
Create an ObjectId for the given byte sequence.static ObjectKey
makeObjectKey(ObjectKeyTemplate oktemp, ObjectId oid)
Create an ObjectKey for the given ObjectKeyTemplate and ObjectId.static ObjectKeyFactory
makeObjectKeyFactory(ORB orb)
static Object
makeObjectReference(IOR ior)
static ObjectReferenceFactory
makeObjectReferenceFactory(ORB orb, IORTemplateList iortemps)
static ObjectReferenceTemplate
makeObjectReferenceTemplate(ORB orb, IORTemplate iortemp)
static void
registerValueFactories(ORB orb)
This method must be called in order to register the value factories for the ObjectReferenceTemplate and ObjectReferenceFactory value types.
-
-
-
Method Detail
-
makeObjectId
public static ObjectId makeObjectId(byte[] id)
Create an ObjectId for the given byte sequence.- Parameters:
id
- bytes to set as object id- Returns:
- created ObjectId
-
makeObjectKey
public static ObjectKey makeObjectKey(ObjectKeyTemplate oktemp, ObjectId oid)
Create an ObjectKey for the given ObjectKeyTemplate and ObjectId.- Parameters:
oktemp
- Template of objectoid
- id of object- Returns:
- created ObjectKey
-
makeIOR
public static IOR makeIOR(ORB orb, java.lang.String typeid)
Create an empty IOR for the given orb and typeid. The result is mutable.- Parameters:
orb
- orb to create IOR fromtypeid
- id of type for IOR- Returns:
- created IOR
-
makeIOR
public static IOR makeIOR(ORB orb)
Create an empty IOR for the given orb with a null typeid. The result is mutable.- Parameters:
orb
- ORB to create IOR for- Returns:
- an empty IOR
-
makeIOR
public static IOR makeIOR(ORB orb, InputStream is)
Read an IOR from an InputStream. ObjectKeys are not shared.- Parameters:
orb
- ORB to use as factoryis
- stream to read from- Returns:
- IOR read from stream
-
makeIORTemplate
public static IORTemplate makeIORTemplate(ObjectKeyTemplate oktemp)
Create an IORTemplate with the given ObjectKeyTemplate. The result is mutable.- Parameters:
oktemp
- template to use- Returns:
- created IORTemplate
-
makeIORTemplate
public static IORTemplate makeIORTemplate(InputStream is)
Read an IORTemplate from an InputStream.- Parameters:
is
- stream to read from- Returns:
- template read from stream
-
makeIORTemplateList
public static IORTemplateList makeIORTemplateList()
-
makeIORTemplateList
public static IORTemplateList makeIORTemplateList(InputStream is)
-
getIORFactory
public static IORFactory getIORFactory(ObjectReferenceTemplate ort)
-
getIORTemplateList
public static IORTemplateList getIORTemplateList(ObjectReferenceFactory orf)
-
makeObjectReferenceTemplate
public static ObjectReferenceTemplate makeObjectReferenceTemplate(ORB orb, IORTemplate iortemp)
-
makeObjectReferenceFactory
public static ObjectReferenceFactory makeObjectReferenceFactory(ORB orb, IORTemplateList iortemps)
-
makeObjectKeyFactory
public static ObjectKeyFactory makeObjectKeyFactory(ORB orb)
-
registerValueFactories
public static void registerValueFactories(ORB orb)
This method must be called in order to register the value factories for the ObjectReferenceTemplate and ObjectReferenceFactory value types.- Parameters:
orb
- ORB to register value factory against
-
-