org.openorb.util
Class ContextUtilities

java.lang.Object
  |
  +--org.openorb.util.ContextUtilities

Deprecated. Deprecated, methods do not throw exceptions. Use NamingUtils.

public class ContextUtilities
extends java.lang.Object

This class is the implementation of tools in order to use simply Corba CosNaming.

Version:
$Revision: 1.2 $ $Date: 2001/07/18 07:40:20 $
Author:
Marina Daniel <mdaniel@intalio.com>

Constructor Summary
ContextUtilities(ORB orb)
          Deprecated. Constructor
 
Method Summary
 boolean bind(java.lang.String name, Object object)
          Deprecated. Use NamingUtils
 NamingContextExt getInitialContext()
          Deprecated. return the initial context of the Naming Service
 boolean rebind(java.lang.String name, Object object_value)
          Deprecated. Use NamingUtils
 Object resolve(java.lang.String name)
          Deprecated. Use NamingUtils, or resolve from a corbaname url.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextUtilities

public ContextUtilities(ORB orb)
Deprecated. 
Constructor
Parameters:
orb - the orb reference
Method Detail

getInitialContext

public NamingContextExt getInitialContext()
Deprecated. 
return the initial context of the Naming Service
Returns:
the initial context

bind

public boolean bind(java.lang.String name,
                    Object object)
Deprecated. Use NamingUtils

Creates a binding of a name and an object in the naming context
Parameters:
name - The compound name for the object to bind. The syntax is ContextA.kindA/ContextB.kindB/obj_name you can specify all the hierarchical naming contexts (the kind of each context is optional). If a naming context do not exist, it will be created
object - The object to bind
Returns:
false if a problem occurs

rebind

public boolean rebind(java.lang.String name,
                      Object object_value)
Deprecated. Use NamingUtils

Creates a binding of a name and an object in the naming context even if the name is already bound in the context
Parameters:
name - The compound name for the object to bind. The syntax is ContextA.kindA/ContextB.kindB/obj_name you can specify all the hierarchical naming contexts (the kind of each context is optional). If a naming context do not exist, it will be created
object - The object to bind
Returns:
false if a problem occurs

resolve

public Object resolve(java.lang.String name)
Deprecated. Use NamingUtils, or resolve from a corbaname url.

Find and return the object that is store in the directory. name resolution can have multiple contexts