|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.media.mn8.NamingManager
Class who is responsible for wrapping and managing the JNDI Context specified in conf/naming.mn8.xml.
Field Summary | |
static java.lang.String |
ENV_ID
|
static java.lang.String |
MEM_ID
|
Method Summary | |
static void |
bind(java.lang.String name,
java.lang.Object obj)
Binds a name to an object. |
static void |
close()
Closes this context. |
static javax.naming.Context |
createSubcontext(java.lang.String name)
Creates and binds a new context. |
static void |
destroySubcontext(java.lang.String name)
Destroys the named context. |
static void |
envBind(java.lang.String name,
java.lang.Object obj)
Because from the outside the env:/ context is read only this is the default method for populating it. |
static NamingManager |
getReference()
Method for getting the NamingManager instance. |
static javax.naming.NamingEnumeration |
list(java.lang.String name)
Enumeratest the names bound in the named context. |
static javax.naming.NamingEnumeration |
listBindings(java.lang.String name)
Enumeratest the names bound in the named context, along with the objects bound to them. |
static java.lang.Object |
lookup(java.lang.String name)
Retrieves the named object. |
static void |
rebind(java.lang.String name,
java.lang.Object obj)
Rebinds or binds a name to an object. |
static void |
rename(java.lang.String oldName,
java.lang.String newName)
Binds a new name to the object bound to an old name, and unbinds the old name. |
static void |
unbind(java.lang.String name)
Unbinds the object binded under the name. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String ENV_ID
public static final java.lang.String MEM_ID
Method Detail |
public static NamingManager getReference()
public static void bind(java.lang.String name, java.lang.Object obj) throws javax.naming.NamingException
name
- The name to bindobj
- The object to be binded.javax.naming.NamingException
- If a naming exception is
encountered.public static void rebind(java.lang.String name, java.lang.Object obj) throws javax.naming.NamingException
name
- The name to bindobj
- The object to be binded.javax.naming.NamingException
- If a naming exception is
encountered.public static void rename(java.lang.String oldName, java.lang.String newName) throws javax.naming.NamingException
oldName
- The name of the existing binding. May not be empty.newName
- The name of the new binding. May not be empty.javax.naming.NamingException
- If a naming exception is
encountered.public static void unbind(java.lang.String name) throws javax.naming.NamingException
name
- The name to unbind. May not be empty.javax.naming.NamingException
- If a naming exception is
encountered.public static javax.naming.NamingEnumeration list(java.lang.String name) throws javax.naming.NamingException
name
- The name of the context to list.javax.naming.NamingException
- If a naming exception is
encountered.public static javax.naming.NamingEnumeration listBindings(java.lang.String name) throws javax.naming.NamingException
name
- The name of the context to list.javax.naming.NamingException
- If a naming exception is
encountered.Binding
public static javax.naming.Context createSubcontext(java.lang.String name) throws javax.naming.NamingException
name
- The name of the subcontext.javax.naming.NamingException
- If a naming exception is
encountered.public static void destroySubcontext(java.lang.String name) throws javax.naming.NamingException
name
- The name of the subcontext.javax.naming.NamingException
- If a naming exception is
encountered.public static void close() throws javax.naming.NamingException
javax.naming.NamingException
- If a naming exception is
encountered.public static java.lang.Object lookup(java.lang.String name) throws javax.naming.NamingException
name
- The name of the object to be looked up.javax.naming.NamingException
- If a naming exception is
encountered.public static void envBind(java.lang.String name, java.lang.Object obj) throws javax.naming.NamingException
name
- The name under which the object will be binded in
the directory context.obj
- The object which will be binded.javax.naming.NamingException
- If a naming exception is
encountered.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |