genDevs.devsBridge
Class ORBHelper

java.lang.Object
  extended by genDevs.devsBridge.ORBHelper

public class ORBHelper
extends java.lang.Object


Nested Class Summary
 class ORBHelper.ORBInfo
           
 
Field Summary
protected static ORBHelper ohInstance
           
 
Constructor Summary
protected ORBHelper()
           
 
Method Summary
static ORBHelper getInstance()
           
static ORBHelper.ORBInfo initOrb(java.lang.String[] args, int defaultPort)
          create and initialize the ORB, initial port 2809, if no other specified
static java.lang.String publishCorbaObject(org.omg.CORBA.Object href, java.lang.String name, org.omg.CORBA.ORB orb, int port)
           
static org.omg.CORBA.Object resolveObjectByNaming(ORBHelper.ORBInfo orbInfo, java.lang.String name)
           
static void unbindName(java.lang.String name, org.omg.CORBA.ORB orb)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ohInstance

protected static ORBHelper ohInstance
Constructor Detail

ORBHelper

protected ORBHelper()
Method Detail

getInstance

public static ORBHelper getInstance()

initOrb

public static ORBHelper.ORBInfo initOrb(java.lang.String[] args,
                                        int defaultPort)
                                 throws org.omg.CORBA.UserException
create and initialize the ORB, initial port 2809, if no other specified

Throws:
org.omg.CORBA.UserException

publishCorbaObject

public static java.lang.String publishCorbaObject(org.omg.CORBA.Object href,
                                                  java.lang.String name,
                                                  org.omg.CORBA.ORB orb,
                                                  int port)
                                           throws org.omg.CORBA.UserException
Throws:
org.omg.CORBA.UserException

unbindName

public static void unbindName(java.lang.String name,
                              org.omg.CORBA.ORB orb)
                       throws org.omg.CORBA.UserException
Throws:
org.omg.CORBA.UserException

resolveObjectByNaming

public static org.omg.CORBA.Object resolveObjectByNaming(ORBHelper.ORBInfo orbInfo,
                                                         java.lang.String name)
                                                  throws org.omg.CORBA.UserException
Throws:
org.omg.CORBA.UserException