|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | 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 String |
ENV_ID
|
static String |
MEM_ID
|
Method Summary | |
static void |
bind(String name,
Object obj)
Binds a name to an object. |
static void |
close()
Closes this context. |
static Context |
createSubcontext(String name)
Creates and binds a new context. |
static void |
destroySubcontext(String name)
Destroys the named context. |
static void |
envBind(String name,
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 NamingEnumeration |
list(String name)
Enumeratest the names bound in the named context. |
static NamingEnumeration |
listBindings(String name)
Enumeratest the names bound in the named context, along with the objects bound to them. |
static Object |
lookup(String name)
Retrieves the named object. |
static void |
rebind(String name,
Object obj)
Rebinds or binds a name to an object. |
static void |
rename(String oldName,
String newName)
Binds a new name to the object bound to an old name, and unbinds the old name. |
static void |
unbind(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 String ENV_ID
public static final String MEM_ID
Method Detail |
public static NamingManager getReference()
public static void bind(String name, Object obj) throws NamingException
name
- The name to bindobj
- The object to be binded.
NamingException
- If a naming exception is
encountered.public static void rebind(String name, Object obj) throws NamingException
name
- The name to bindobj
- The object to be binded.
NamingException
- If a naming exception is
encountered.public static void rename(String oldName, String newName) throws NamingException
oldName
- The name of the existing binding. May not be empty.newName
- The name of the new binding. May not be empty.
NamingException
- If a naming exception is
encountered.public static void unbind(String name) throws NamingException
name
- The name to unbind. May not be empty.
NamingException
- If a naming exception is
encountered.public static NamingEnumeration list(String name) throws NamingException
name
- The name of the context to list.
NamingException
- If a naming exception is
encountered.public static NamingEnumeration listBindings(String name) throws NamingException
name
- The name of the context to list.
NamingException
- If a naming exception is
encountered.Binding
public static Context createSubcontext(String name) throws NamingException
name
- The name of the subcontext.
NamingException
- If a naming exception is
encountered.public static void destroySubcontext(String name) throws NamingException
name
- The name of the subcontext.
NamingException
- If a naming exception is
encountered.public static void close() throws NamingException
NamingException
- If a naming exception is
encountered.public static Object lookup(String name) throws NamingException
name
- The name of the object to be looked up.
NamingException
- If a naming exception is
encountered.public static void envBind(String name, Object obj) throws NamingException
name
- The name under which the object will be binded in
the directory context.obj
- The object which will be binded.
NamingException
- If a naming exception is
encountered.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |