< prev index next >

src/java.corba/share/classes/com/sun/corba/se/impl/naming/cosnaming/TransientNameService.java

Print this page




  68      * NamingContext, whose object
  69      * reference can be obtained by the initialNamingContext method.
  70      * @param orb The ORB object
  71      * @exception org.omg.CORBA.INITIALIZE Thrown if
  72      * the TransientNameService cannot initialize.
  73      */
  74     public TransientNameService(com.sun.corba.se.spi.orb.ORB orb )
  75         throws org.omg.CORBA.INITIALIZE
  76     {
  77         // Default constructor uses "NameService" as the key for the Root Naming
  78         // Context. If default constructor is used then INS's object key for
  79         // Transient Name Service is "NameService"
  80         initialize( orb, "NameService" );
  81     }
  82 
  83     /**
  84      * Constructs a new TransientNameService, and creates an initial
  85      * NamingContext, whose object
  86      * reference can be obtained by the initialNamingContext method.
  87      * @param orb The ORB object
  88      * @param nameserviceName Stringified key used for INS Service registry
  89      * @exception org.omg.CORBA.INITIALIZE Thrown if
  90      * the TransientNameService cannot initialize.
  91      */
  92     public TransientNameService(com.sun.corba.se.spi.orb.ORB orb,
  93         String serviceName ) throws org.omg.CORBA.INITIALIZE
  94     {
  95         // This constructor gives the flexibility of providing the Object Key
  96         // for the Root Naming Context that is registered with INS.
  97         initialize( orb, serviceName );
  98     }
  99 
 100 
 101     /**
 102      * This method initializes Transient Name Service by associating Root
 103      * context with POA and registering the root context with INS Object Keymap.
 104      */
 105     private void initialize( com.sun.corba.se.spi.orb.ORB orb,
 106         String nameServiceName )
 107         throws org.omg.CORBA.INITIALIZE
 108     {




  68      * NamingContext, whose object
  69      * reference can be obtained by the initialNamingContext method.
  70      * @param orb The ORB object
  71      * @exception org.omg.CORBA.INITIALIZE Thrown if
  72      * the TransientNameService cannot initialize.
  73      */
  74     public TransientNameService(com.sun.corba.se.spi.orb.ORB orb )
  75         throws org.omg.CORBA.INITIALIZE
  76     {
  77         // Default constructor uses "NameService" as the key for the Root Naming
  78         // Context. If default constructor is used then INS's object key for
  79         // Transient Name Service is "NameService"
  80         initialize( orb, "NameService" );
  81     }
  82 
  83     /**
  84      * Constructs a new TransientNameService, and creates an initial
  85      * NamingContext, whose object
  86      * reference can be obtained by the initialNamingContext method.
  87      * @param orb The ORB object
  88      * @param serviceName Stringified key used for INS Service registry
  89      * @exception org.omg.CORBA.INITIALIZE Thrown if
  90      * the TransientNameService cannot initialize.
  91      */
  92     public TransientNameService(com.sun.corba.se.spi.orb.ORB orb,
  93         String serviceName ) throws org.omg.CORBA.INITIALIZE
  94     {
  95         // This constructor gives the flexibility of providing the Object Key
  96         // for the Root Naming Context that is registered with INS.
  97         initialize( orb, serviceName );
  98     }
  99 
 100 
 101     /**
 102      * This method initializes Transient Name Service by associating Root
 103      * context with POA and registering the root context with INS Object Keymap.
 104      */
 105     private void initialize( com.sun.corba.se.spi.orb.ORB orb,
 106         String nameServiceName )
 107         throws org.omg.CORBA.INITIALIZE
 108     {


< prev index next >