public class NamingUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static Logger |
__log
Deprecated.
no replacement, use a logger-per-class idiom instead.
|
private static Logger |
LOG |
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) |
@Deprecated public static final Logger __log
private 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.NamingException
public 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
- if unable to flatten bindings