public class Util
extends java.lang.Object
Constructor and Description |
---|
Util() |
Modifier and Type | Method and Description |
---|---|
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.
|
public static void bind(javax.naming.Context ctx, java.lang.String nameStr, java.lang.Object obj) throws javax.naming.NamingException
ctx
- the context into which to bindname
- the name relative to context to bindobj
- the object to be boundjavax.naming.NamingException
- if an error occurspublic static java.util.Map flattenBindings(javax.naming.Context ctx, java.lang.String name) throws javax.naming.NamingException
ctx
- the context containing the name for which to list the bindingsname
- the name in the context to listjavax.naming.NamingException
Copyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.