org.omg.CosNaming
Class NamingContextPOATie

java.lang.Object
  extended byorg.omg.PortableServer.Servant
      extended byorg.omg.CosNaming.NamingContextPOA
          extended byorg.omg.CosNaming.NamingContextPOATie
All Implemented Interfaces:
InvokeHandler, NamingContextOperations

public class NamingContextPOATie
extends NamingContextPOA

This interface provides all functions to bind, rebind and resolve an object into the naming graph.


Constructor Summary
NamingContextPOATie(NamingContextOperations tieObject)
           
NamingContextPOATie(NamingContextOperations tieObject, POA poa)
           
 
Method Summary
 POA _default_POA()
           
 NamingContextOperations _delegate()
           
 void _delegate(NamingContextOperations delegate_)
           
 void bind_context(NameComponent[] n, NamingContext nc)
          Names an object that is a naming context.
 NamingContext bind_new_context(NameComponent[] n)
          This operation creates a new context and binds it to the name supplied as an argument.
 void bind(NameComponent[] n, Object obj)
          Creates a binding of a name and an object in the naming context.
 void destroy()
          The destroy operation deletes a naming context.
 void list(int how_many, BindingListHolder bl, BindingIteratorHolder bi)
          The list operation allows a client to iterate through a set of bindings in a naming context.
 NamingContext new_context()
          This operation returns a naming context implemented by the same naming server as the context on which the operation was invoked.
 void rebind_context(NameComponent[] n, NamingContext nc)
          Creates a binding of a name and a naming context in the naming context even if the name is already bound in the context.
 void rebind(NameComponent[] n, Object obj)
          Creates a binding of a name and an object in the naming context even if the name is already bound in the context.
 Object resolve(NameComponent[] n)
          Names can have multiple components; therefore, name resolution can traverse multiple contexts.
 void unbind(NameComponent[] n)
          The unbind operation removes a name binding from a context.
 
Methods inherited from class org.omg.CosNaming.NamingContextPOA
_all_interfaces, _invoke, _this, _this
 
Methods inherited from class org.omg.PortableServer.Servant
_get_delegate, _get_interface_def, _get_interface, _is_a, _non_existent, _object_id, _orb, _orb, _poa, _set_delegate, _this_object, _this_object
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamingContextPOATie

public NamingContextPOATie(NamingContextOperations tieObject)

NamingContextPOATie

public NamingContextPOATie(NamingContextOperations tieObject,
                           POA poa)
Method Detail

_delegate

public NamingContextOperations _delegate()

_delegate

public void _delegate(NamingContextOperations delegate_)

_default_POA

public POA _default_POA()
Overrides:
_default_POA in class Servant

bind

public void bind(NameComponent[] n,
                 Object obj)
          throws NotFound,
                 CannotProceed,
                 InvalidName,
                 AlreadyBound
Description copied from interface: NamingContextOperations
Creates a binding of a name and an object in the naming context. Naming contexts that are bound using bind do not participate in name resolution when compound names are passed to be resolved.

Parameters:
n - The compound name for the object to bind
obj - The object to bind
Throws:
NotFound
CannotProceed
InvalidName
AlreadyBound

rebind

public void rebind(NameComponent[] n,
                   Object obj)
            throws NotFound,
                   CannotProceed,
                   InvalidName
Description copied from interface: NamingContextOperations
Creates a binding of a name and an object in the naming context even if the name is already bound in the context. Naming contexts that are bound using rebind do not participate in name resolution when compound names are passed to be resolved.

Parameters:
n - The compound name for the object to rebind
obj - The object to rebind
Throws:
NotFound
CannotProceed
InvalidName

bind_context

public void bind_context(NameComponent[] n,
                         NamingContext nc)
                  throws NotFound,
                         CannotProceed,
                         InvalidName,
                         AlreadyBound
Description copied from interface: NamingContextOperations
Names an object that is a naming context. Naming contexts that are bound using bind_context() participate in name resolution when compound names are passed to be resolved.

Parameters:
n - The compound name for the naming context to bind
Throws:
NotFound
CannotProceed
InvalidName
AlreadyBound

rebind_context

public void rebind_context(NameComponent[] n,
                           NamingContext nc)
                    throws NotFound,
                           CannotProceed,
                           InvalidName
Description copied from interface: NamingContextOperations
Creates a binding of a name and a naming context in the 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 passed to be resolved.

Parameters:
n - The compound name for the naming context to rebind
Throws:
NotFound
CannotProceed
InvalidName

resolve

public Object resolve(NameComponent[] n)
               throws NotFound,
                      CannotProceed,
                      InvalidName
Description copied from interface: NamingContextOperations
Names can have multiple components; therefore, name resolution can traverse multiple contexts.

Parameters:
n - The compound name for the object to resolve.
Returns:
the resolved object.
Throws:
NotFound
CannotProceed
InvalidName

unbind

public void unbind(NameComponent[] n)
            throws NotFound,
                   CannotProceed,
                   InvalidName
Description copied from interface: NamingContextOperations
The unbind operation removes a name binding from a context.

Parameters:
n - The compound name for the node to unbind ( an object or a naming context )
Throws:
NotFound
CannotProceed
InvalidName

new_context

public NamingContext new_context()
Description copied from interface: NamingContextOperations
This operation returns a naming context implemented by the same naming server as the context on which the operation was invoked. The new context is not bound to any name.

Returns:
A new naming context ( this new naming context must be binded )

bind_new_context

public NamingContext bind_new_context(NameComponent[] n)
                               throws NotFound,
                                      AlreadyBound,
                                      CannotProceed,
                                      InvalidName
Description copied from interface: NamingContextOperations
This operation creates a new context and binds it to the name supplied as an argument. The newly-created context is implemented by the same naming server as the context in which it was bound (that is, the naming server that implements the context denoted by the name argument excluding the last component).

Parameters:
n - The compound name for the naming context to create and to bind.
Throws:
NotFound
AlreadyBound
CannotProceed
InvalidName

destroy

public void destroy()
             throws NotEmpty
Description copied from interface: NamingContextOperations
The destroy operation deletes a naming context.

Throws:
NotEmpty

list

public void list(int how_many,
                 BindingListHolder bl,
                 BindingIteratorHolder bi)
Description copied from interface: NamingContextOperations
The list operation allows a client to iterate through a set of bindings in a naming context.

Parameters:
how_many - Maximum number of elements into the binding list.
bl - This parameter returns a list that contains all node of the naming context
bi - This parameter returns a binding iterator to iterate in the list.
Returns:
The list operation returns at most the requested number of bindings in BindingList bl. - If the naming context contains additional bindings, the list operation returns a BindingIterator with the additional bindings. - If the naming context does not contain additional bindings, the binding iterator is a nil object reference.