| 
 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
This interface provides all functions to bind, rebind and resolve an object into the naming graph.
| Method Summary | |
|  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. | 
| Method Detail | 
public void bind(NameComponent[] n,
                 Object obj)
          throws NotFound,
                 CannotProceed,
                 InvalidName,
                 AlreadyBound
n - The compound name for the object to bindobj - The object to bindNotFound - Indicates the name does not identify a binding.CannotProceed - Indicates that the implementation has
 given up for some reason. The client, however,
 may be able to continue the operation at the
 returned naming context.Indicates - the name is invalid. (A name of length 0
 is invalid; implementations may place other
 restrictions on names.)AlreadyBound - Indicates an object is already bound to
 the specified name. Only one object can be bound
 to a particular name in a context. The bind and
 the bind_context operations raise the
 AlreadyBound exception if the name is bound in
 the context; the rebind and rebind_context
 operations unbind the name and rebind the name
 to the object passed as an argument.
public void rebind(NameComponent[] n,
                   Object obj)
            throws NotFound,
                   CannotProceed,
                   InvalidName
n - The compound name for the object to rebindobj - The object to rebindNotFound - Indicates the name does not identify a binding.CannotProceed - Indicates that the implementation has
 given up for some reason. The client, however,
 may be able to continue the operation at the
 returned naming context.InvalidName - Indicates the name is invalid. (A name
 of length 0 is invalid; implementations may
 place other restrictions on names.)AlreadyBound - Indicates an object is already bound to
 the specified name. Only one object can be bound
 to a particular name in a context. The bind and
 the bind_context operations raise the
 AlreadyBound exception if the name is bound in
 the context; the rebind and rebind_context
 operations unbind the name and rebind the name
 to the object passed as an argument.
public void bind_context(NameComponent[] n,
                         NamingContext nc)
                  throws NotFound,
                         CannotProceed,
                         InvalidName,
                         AlreadyBound
n - The compound name for the naming context to bindobj - The naming context to bindNotFound - Indicates the name does not identify a binding.CannotProceed - Indicates that the implementation has
 given up for some reason. The client, however,
 may be able to continue the operation at the
 returned naming context.InvalidName - Indicates the name is invalid. (A name
 of length 0 is invalid; implementations may
 place other restrictions on names.)AlreadyBound - Indicates an object is already bound to
 the specified name. Only one object can be bound
 to a particular name in a context. The bind and
 the bind_context operations raise the
 AlreadyBound exception if the name is bound in
 the context; the rebind and rebind_context
 operations unbind the name and rebind the name
 to the object passed as an argument.
public void rebind_context(NameComponent[] n,
                           NamingContext nc)
                    throws NotFound,
                           CannotProceed,
                           InvalidName
n - The compound name for the naming context to rebindobj - The naming context to rebindNotFound - Indicates the name does not identify a
 binding.CannotProceed - Indicates that the implementation has
 given up for some reason. The client, however,
 may be able to continue the operation at the
 returned naming context.InvalidName - Indicates the name is invalid. (A name
 of length 0 is invalid; implementations may
 place other restrictions on names.)AlreadyBound - Indicates an object is already bound to
 the specified name. Only one object can be bound
 to a particular name in a context. The bind and
 the bind_context operations raise the
 AlreadyBound exception if the name is bound in
 the context; the rebind and rebind_context
 operations unbind the name and rebind the name
 to the object passed as an argument.
public Object resolve(NameComponent[] n)
               throws NotFound,
                      CannotProceed,
                      InvalidName
n - The compound name for the object to resolve.NotFound - Indicates the name does not identify a binding.CannotProceed - Indicates that the implementation has
 given up for some reason. The client, however,
 may be able to continue the operation at the
 returned naming context.InvalidName - Indicates the name is invalid. (A name
 of length 0 is invalid; implementations may
 place other restrictions on names.)
public void unbind(NameComponent[] n)
            throws NotFound,
                   CannotProceed,
                   InvalidName
n - The compound name for the node to unbind ( an object
 or a naming context )NotFound - Indicates the name does not identify a binding.CannotProceed - Indicates that the implementation has
 given up for some reason. The client, however,
 may be able to continue the operation at the
 returned naming context.InvalidName - Indicates the name is invalid. (A name
 of length 0 is invalid; implementations may
 place other restrictions on names.)public NamingContext new_context()
public NamingContext bind_new_context(NameComponent[] n)
                               throws NotFound,
                                      AlreadyBound,
                                      CannotProceed,
                                      InvalidName
n - The compound name for the naming context to create and
 to bind.NotFound - Indicates the name does not identify a
 binding.CannotProceed - Indicates that the implementation has
 given up for some reason. The client, however,
 may be able to continue the operation at the
 returned naming context.InvalidName - Indicates the name is invalid. (A name
 of length 0 is invalid; implementations may
 place other restrictions on names.)AlreadyBound - Indicates an object is already bound to
 the specified name. Only one object can be bound
 to a particular name in a context.
public void destroy()
             throws NotEmpty
NotEmpty - If the naming context contains bindings,
 the NotEmpty exception is raised.
public void list(int how_many,
                 BindingListHolder bl,
                 BindingIteratorHolder bi)
how_many - Maximum number of elements into the binding list.bl - This parameter returns a list that contains all node
 of the naming contextbi - This parameter returns a binding iterator to iterate
 in the list.| 
 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||