public class NamingUtil extends Object
| Constructor and Description |
|---|
NamingUtil() |
| Modifier and Type | Method and Description |
|---|---|
static Context |
bind(Context ctx,
String nameStr,
Object obj)
Bind an object to a context ensuring all sub-contexts
are created if necessary
|
static Map |
flattenBindings(Context ctx,
String name)
Do a deep listing of the bindings for a context.
|
static void |
unbind(Context ctx) |
public static final Logger __log
public static Context bind(Context ctx, String nameStr, Object obj) throws NamingException
ctx - the context into which to bindnameStr - the name relative to context to bindobj - the object to be boundNamingException - if an error occurspublic static void unbind(Context ctx) throws NamingException
NamingExceptionpublic static Map flattenBindings(Context ctx, String name) throws NamingException
ctx - the context containing the name for which to list the bindingsname - the name in the context to listNamingExceptionCopyright © 1995-2015 Mort Bay Consulting. All Rights Reserved.