javax.naming
public class InitialContext extends Object implements Context
Field Summary | |
---|---|
protected Context | defaultInitCtx
Contains the default initial context. |
protected boolean | gotDefault
Indicates if the initial context was obtained by calling
NamingManager#getInitialContext. |
protected Hashtable<Object,Object> | myProps
The environment, associated with this initial context. |
Constructor Summary | |
---|---|
InitialContext(Hashtable<?,?> environment)
Creates the new initial context with the given properties.
| |
protected | InitialContext(boolean lazy)
Creates the initial context with the possibility to delay its
initialisation.
|
InitialContext()
Creates teh new initial context with no properties. |
Method Summary | |
---|---|
Object | addToEnvironment(String propName, Object propVal) |
void | bind(Name name, Object obj) |
void | bind(String name, Object obj) |
void | close() |
Name | composeName(Name name, Name prefix) |
String | composeName(String name, String prefix) |
Context | createSubcontext(Name name) |
Context | createSubcontext(String name) |
void | destroySubcontext(Name name) |
void | destroySubcontext(String name) |
protected Context | getDefaultInitCtx()
Get the default initial context. |
Hashtable<?,?> | getEnvironment() |
String | getNameInNamespace()
This operation is not supported for the initial naming context.
|
NameParser | getNameParser(Name name) |
NameParser | getNameParser(String name) |
protected Context | getURLOrDefaultInitCtx(Name name)
Obtains the context for resolving the given name. |
protected Context | getURLOrDefaultInitCtx(String name)
Obtains the context for resolving the given name. |
protected void | init(Hashtable<?,?> environment) Initialises the context, using the properties, specified in the passed table. |
NamingEnumeration<NameClassPair> | list(Name name) |
NamingEnumeration<NameClassPair> | list(String name) |
NamingEnumeration<Binding> | listBindings(Name name) |
NamingEnumeration<Binding> | listBindings(String name) |
Object | lookup(Name name) |
Object | lookup(String name) |
Object | lookupLink(Name name) |
Object | lookupLink(String name) |
void | rebind(Name name, Object obj) |
void | rebind(String name, Object obj) |
Object | removeFromEnvironment(String propName) |
void | rename(Name oldName, Name newName) |
void | rename(String oldName, String newName) |
void | unbind(Name name) |
void | unbind(String name) |
Parameters: environment the properties, used by the initial context being created.
Throws: NamingException
Parameters: lazy specified if the initialization should not be performed by this constructor (true). If the valueis false, it works the same way as the parameterless constructor.
Throws: NamingException
Throws: NamingException
UNKNOWN:
UNKNOWN:
UNKNOWN:
UNKNOWN:
UNKNOWN:
UNKNOWN:
UNKNOWN:
UNKNOWN:
UNKNOWN:
UNKNOWN:
Returns: the default initial context
Throws: NamingException
UNKNOWN:
Throws: OperationNotSupportedException always, unless the method is overridden in the derived class.
UNKNOWN:
UNKNOWN:
Parameters: name the name, for that it is required to obtain the context.
Returns: the context for resolving the name.
Throws: NamingException
Parameters: name the name, for that it is required to obtain the context.
Returns: the context for resolving the name.
Throws: NamingException
Initialises the context, using the properties, specified in the passed table.
The missing properties are additionally obtained (in order) from the following locations:Parameters: environment the table of the properties, may be null. The method modifies the table and stores the reference to it. The caller must not later reuse this structure for other purposes.
Since: 1.3
UNKNOWN:
UNKNOWN:
UNKNOWN:
UNKNOWN:
UNKNOWN:
UNKNOWN:
UNKNOWN:
UNKNOWN:
UNKNOWN:
UNKNOWN:
UNKNOWN:
UNKNOWN:
UNKNOWN:
UNKNOWN:
UNKNOWN: