public class NamingUtil
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
static org.eclipse.jetty.util.log.Logger |
__log |
Constructor | Description |
---|---|
NamingUtil() |
Modifier and Type | Method | 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 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 bindingsCopyright © 1995–2018 Webtide. All rights reserved.