org.mortbay.jndi
Class Util
java.lang.Object
|
+--org.mortbay.jndi.Util
- public class Util
- extends java.lang.Object
Util.java
Created: Tue Jul 1 18:26:17 2003
- Version:
- 1.0
- Author:
- Jan Bartel
Constructor Summary |
Util()
|
Method Summary |
static void |
bind(javax.naming.Context ctx,
java.lang.String nameStr,
java.lang.Object obj)
Bind an object to a context ensuring all subcontexts
are created if necessary |
static java.util.Map |
flattenBindings(javax.naming.Context ctx,
java.lang.String name)
Do a deep listing of the bindings for a context. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Util
public Util()
bind
public static void bind(javax.naming.Context ctx,
java.lang.String nameStr,
java.lang.Object obj)
throws javax.naming.NamingException
- Bind an object to a context ensuring all subcontexts
are created if necessary
- Parameters:
ctx
- the context into which to bindobj
- the object to be bound
- Throws:
javax.naming.NamingException
- if an error occurs
flattenBindings
public static java.util.Map flattenBindings(javax.naming.Context ctx,
java.lang.String name)
throws javax.naming.NamingException
- Do a deep listing of the bindings for a context.
- Parameters:
ctx
- the context containing the name for which to list the bindingsname
- the name in the context to list
- Returns:
- map: key is fully qualified name, value is the bound object
- Throws:
javax.naming.NamingException
Copyright ? 2000 Mortbay Consulting Pty. Ltd. All Rights Reserved.