public class NamingUtil
extends java.lang.Object
| Constructor and Description |
|---|
NamingUtil() |
| Modifier and Type | Method and Description |
|---|---|
static javax.naming.Context |
bind(javax.naming.Context ctx,
java.lang.String nameStr,
java.lang.Object obj)
Bind an object to a context ensuring all sub-contexts
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.
|
static void |
unbind(javax.naming.Context ctx) |
public static final Logger __log
public static javax.naming.Context bind(javax.naming.Context ctx,
java.lang.String nameStr,
java.lang.Object obj)
throws javax.naming.NamingException
ctx - the context into which to bindnameStr - the name relative to context to bindobj - the object to be boundjavax.naming.NamingException - if an error occurspublic static void unbind(javax.naming.Context ctx)
throws javax.naming.NamingException
javax.naming.NamingExceptionpublic 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.NamingExceptionCopyright © 2013 FuseSource, Corp.. All Rights Reserved.