Class COM.ibm.dsom.services.CosNaming.NamingContextStub
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class COM.ibm.dsom.services.CosNaming.NamingContextStub

java.lang.Object
   |
   +----sunw.orb.RemoteObjectImpl
           |
           +----sunw.corba.ObjectImpl
                   |
                   +----COM.ibm.dsom.services.CosNaming.NamingContextStub

public class NamingContextStub
extends ObjectImpl
implements NamingContextRef

Constructor Index

 o NamingContextStub()
 o NamingContextStub(Representation)

Method Index

 o __classInterfaceName()
 o __interfaceName()
 o bind(NameComponent[], ObjectRef)
The bind operation creates a binding of a name and an object in the target naming context.
 o bind_context(NameComponent[], NamingContextRef)
The bind_context operation binds a naming context to the name.
 o bind_new_context(NameComponent[])
The bind_new_context operation creates a name naming context and binds it to the name supplied as the argument.
 o createRef()
 o createRef(Representation)
 o destroy()
The destroy operation destroys the naming context.
 o duplicate()
 o getInterfaceRepositoryIdentifier()
 o getRepositoryIdentifier()
 o isA(ObjectRef)
 o list(int, BindingListHolder, BindingIteratorHolder)
The list operation returns at most "how_many" number of bindings in bl.
 o narrow(ObjectRef)
 o new_context()
The new_context operation returns a new naming context in the same process as the context on which the operation was invoked.
 o rebind(NameComponent[], ObjectRef)
The rebind operation creates a binding of the name and an object even if the name is already bound in the context.
 o rebind_context(NameComponent[], NamingContextRef)
The rebind_context operation creates a binding between a name and a naming context in the target naming context even if the name is already bound in the context.
 o resolve(NameComponent[])
The resolve operation retrieves an object bound to a name in the context.
 o unbind(NameComponent[])
The unbind operation removes a name binding from a context.

Constructors

 o NamingContextStub
  protected NamingContextStub()
 o NamingContextStub
  protected NamingContextStub(Representation src)

Methods

 o bind
  public void bind(NameComponent n[],
                   ObjectRef obj) throws SystemException, NotFound, CannotProceed, InvalidName, AlreadyBound
The bind operation creates a binding of a name and an object in the target naming context. Naming Contexts that are bound using bind do not participate in name resolution when compound name resolution is done.
Parameters:
n - The NameComponent[] which contains the name of the context to bind.
obj - The object reference to be rebound.
Returns:
none.
 o rebind
  public void rebind(NameComponent n[],
                     ObjectRef obj) throws SystemException, NotFound, CannotProceed, InvalidName
The rebind operation creates a binding of the name and an object even if the name is already bound in the context. Naming contexts that are bound using rebind do not participate in name resolution process when compound names are passed to be resolved.
Parameters:
n - The NameComponent[] which contains the name of the context to bind.
obj - The object reference to be rebound.
Returns:
none.
 o bind_context
  public void bind_context(NameComponent n[],
                           NamingContextRef nc) throws SystemException, NotFound, CannotProceed, InvalidName, AlreadyBound
The bind_context operation binds a naming context to the name. Naming contexts that are bound using bind_context participate in name resolution when compound names are resolved.
Parameters:
n - The NameComponent[] which contains the name of the context to bind.
nc - The naming context to be bound.
Returns:
none.
 o rebind_context
  public void rebind_context(NameComponent n[],
                             NamingContextRef nc) throws SystemException, NotFound, CannotProceed, InvalidName
The rebind_context operation creates a binding between a name and a naming context in the target naming context even if the name is already bound in the context. Naming contexts that are bound using rebind_context participate in name resolution when compound names are resolved.
Parameters:
n - The NameComponent[] which contains the name of the context to bind.
nc - The naming context to be rebound.
Returns:
none.
 o resolve
  public ObjectRef resolve(NameComponent n[]) throws SystemException, NotFound, CannotProceed, InvalidName
The resolve operation retrieves an object bound to a name in the context. Since names can be compound, name resolution can traverse multiple naming contexts.
Parameters:
n - The NameComponent[] which contains the name of the context that contains the object to be resolved.
Returns:
An ObjectRef is returned. This reference will need to be narrow'ed to the object's actual type.
 o unbind
  public void unbind(NameComponent n[]) throws SystemException, NotFound, CannotProceed, InvalidName
The unbind operation removes a name binding from a context.
Parameters:
n - The NameComponent[] which contains the name of the context to bind.
Returns:
none.
 o new_context
  public NamingContextRef new_context() throws SystemException
The new_context operation returns a new naming context in the same process as the context on which the operation was invoked. The new context is not bound to any name.
Returns:
The new naming context reference.
 o bind_new_context
  public NamingContextRef bind_new_context(NameComponent n[]) throws SystemException, NotFound, CannotProceed, InvalidName, AlreadyBound
The bind_new_context operation creates a name naming context and binds it to the name supplied as the argument. The naming context is created in the same process as the context on which the bind_new_context was invoked.
Parameters:
n - The NameComponent[] which contains the name of the context to bind.
Returns:
The new naming context reference.
 o destroy
  public void destroy() throws SystemException, NotEmpty
The destroy operation destroys the naming context. If the naming context has bindings, a NotEmpty exception is raised. It is the responsibilty of the caller to make sure that there are no refernces to this naming context.
Returns:
none
 o list
  public void list(int how_many,
                   BindingListHolder bl,
                   BindingIteratorHolder bi) throws SystemException
The list operation returns at most "how_many" number of bindings in bl. If the naming context contains additional bindings, a BindingIterator is returned. If the naming context does not contain additional bindings, the binding iterator is a "nil" object reference
Parameters:
how_many - The number of bindings requested.
bl - The list where the bindings will be placed.
Returns:
none
 o __interfaceName
  public InterfaceNameDescriptor __interfaceName()
Overrides:
__interfaceName in class RemoteObjectImpl
 o __classInterfaceName
  public static InterfaceNameDescriptor __classInterfaceName()
 o getInterfaceRepositoryIdentifier
  public static String getInterfaceRepositoryIdentifier()
 o getRepositoryIdentifier
  public String getRepositoryIdentifier()
 o isA
  public static boolean isA(ObjectRef that) throws SystemException
See Also:
isA
 o createRef
  public static NamingContextRef createRef()
 o createRef
  public static NamingContextRef createRef(Representation src)
 o duplicate
  public ObjectRef duplicate() throws SystemException
See Also:
duplicate
 o narrow
  public static NamingContextRef narrow(ObjectRef that) throws NarrowCoercionException, SystemException

All Packages  Class Hierarchy  This Package  Previous  Next  Index