org.jacorb.naming

Class NamingContextImpl

public class NamingContextImpl extends NamingContextExtPOA implements Serializable, Configurable

The implementation for the CORBAService Naming

Version: $Id: NamingContextImpl.java,v 1.30 2006/06/14 11:56:56 alphonse.bendt Exp $

Author: Gerald Brose

Method Summary
voidbind(NameComponent[] nc, Object obj)
bind a name (an array of name components) to an object
voidbind_context(NameComponent[] nc, NamingContext obj)
Bind a context to a name
NamingContextbind_new_context(NameComponent[] nc)
voidconfigure(Configuration myConfiguration)
POAdefault_POA()
POA-related,
voiddestroy()
inthow_many()
static voidinit(ORB orb, POA rootPoa)
This method needs to be called once to initialize the static fields orb and rootPoa.
voidlist(int how_many, BindingListHolder bl, BindingIteratorHolder bi)
list all bindings
NamingContextnew_context()
voidrebind(NameComponent[] nc, Object obj)
Bind an object to a name that's already in use, i.e. rebind the name
voidrebind_context(NameComponent[] nc, NamingContext obj)
Bind an context to a name that's already in use, i.e. rebind the name
Objectresolve(NameComponent[] nc)
resolve a name
Objectresolve_str(String n)
NameComponent[]to_name(String sn)
convert a string into name
Stringto_string(NameComponent[] n)
convert a name into its string representation
Stringto_url(String addr, String sn)
voidunbind(NameComponent[] nc)
unbind a name

Method Detail

bind

public void bind(NameComponent[] nc, Object obj)
bind a name (an array of name components) to an object

bind_context

public void bind_context(NameComponent[] nc, NamingContext obj)
Bind a context to a name

bind_new_context

public NamingContext bind_new_context(NameComponent[] nc)

configure

public void configure(Configuration myConfiguration)

default_POA

public POA default_POA()
POA-related,

destroy

public void destroy()

how_many

public int how_many()

Returns: numer of bindings in this context

init

public static void init(ORB orb, POA rootPoa)
This method needs to be called once to initialize the static fields orb and rootPoa.

list

public void list(int how_many, BindingListHolder bl, BindingIteratorHolder bi)
list all bindings

new_context

public NamingContext new_context()

rebind

public void rebind(NameComponent[] nc, Object obj)
Bind an object to a name that's already in use, i.e. rebind the name

rebind_context

public void rebind_context(NameComponent[] nc, NamingContext obj)
Bind an context to a name that's already in use, i.e. rebind the name

resolve

public Object resolve(NameComponent[] nc)
resolve a name

resolve_str

public Object resolve_str(String n)

to_name

public NameComponent[] to_name(String sn)
convert a string into name

Throws: InvalidName

to_string

public String to_string(NameComponent[] n)
convert a name into its string representation

to_url

public String to_url(String addr, String sn)

unbind

public void unbind(NameComponent[] nc)
unbind a name