Class IORFactories

java.lang.Object
com.sun.corba.se.spi.ior.IORFactories

public class IORFactories extends 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
  • Method Details

    • makeObjectId

      public static ObjectId makeObjectId(byte[] id)
      Create an ObjectId for the given byte sequence.
    • makeObjectKey

      public static ObjectKey makeObjectKey(ObjectKeyTemplate oktemp, ObjectId oid)
      Create an ObjectKey for the given ObjectKeyTemplate and ObjectId.
    • makeIOR

      public static IOR makeIOR(ORB orb, String typeid)
      Create an empty IOR for the given orb and typeid. The result is mutable.
    • makeIOR

      public static IOR makeIOR(ORB orb)
      Create an empty IOR for the given orb with a null typeid. The result is mutable.
    • makeIOR

      public static IOR makeIOR(InputStream is)
      Read an IOR from an InputStream. ObjectKeys are not shared.
    • makeIORTemplate

      public static IORTemplate makeIORTemplate(ObjectKeyTemplate oktemp)
      Create an IORTemplate with the given ObjectKeyTemplate. The result is mutable.
    • makeIORTemplate

      public static IORTemplate makeIORTemplate(InputStream is)
      Read an IORTemplate from an InputStream.
    • 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)
    • getIOR

      public static IOR getIOR(Object obj)
    • makeObjectReference

      public static Object makeObjectReference(IOR ior)
    • 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.