public class JndiHelper extends Object
| Constructor and Description |
|---|
JndiHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
bind(Context ctx,
Name name,
Object value)
Bind val to name in ctx, and make sure that all intermediate contexts exist
|
static void |
bind(Context ctx,
String name,
Object value)
Bind val to name in ctx, and make sure that all intermediate contexts exist
|
static Context |
createSubcontext(Context ctx,
Name name)
Create a subcontext including any intermediate contexts.
|
static Context |
createSubcontext(Context ctx,
String name)
Create a subcontext including any intermediate contexts.
|
static void |
rebind(Context ctx,
Name name,
Object value)
Rebind val to name in ctx, and make sure that all intermediate contexts exist
|
static void |
rebind(Context ctx,
String name,
Object value)
Rebind val to name in ctx, and make sure that all intermediate contexts exist
|
static void |
unbind(Context ctx,
Name name)
Unbinds a name from ctx, and removes parents if they are empty
|
static void |
unbind(Context ctx,
String name)
Unbinds a name from ctx, and removes parents if they are empty
|
public JndiHelper()
public static Context createSubcontext(Context ctx, String name) throws NamingException
ctx - the parent JNDI Context under which value will be boundname - the name relative to ctx of the subcontext.NamingException - on any JNDI failurepublic static Context createSubcontext(Context ctx, Name name) throws NamingException
ctx - the parent JNDI Context under which value will be boundname - the name relative to ctx of the subcontext.NamingException - on any JNDI failurepublic static void bind(Context ctx, String name, Object value) throws NamingException
ctx - the parent JNDI Context under which value will be boundname - the name relative to ctx where value will be boundvalue - the value to bind.NamingException - for any errorpublic static void bind(Context ctx, Name name, Object value) throws NamingException
ctx - the parent JNDI Context under which value will be boundname - the name relative to ctx where value will be boundvalue - the value to bind.NamingException - for any errorpublic static void rebind(Context ctx, String name, Object value) throws NamingException
ctx - the parent JNDI Context under which value will be boundname - the name relative to ctx where value will be boundvalue - the value to bind.NamingException - for any errorpublic static void rebind(Context ctx, Name name, Object value) throws NamingException
ctx - the parent JNDI Context under which value will be boundname - the name relative to ctx where value will be boundvalue - the value to bind.NamingException - for any errorpublic static void unbind(Context ctx, String name) throws NamingException
ctx - the parent JNDI Context under which the name will be unboundname - The name to unbindNamingException - for any errorpublic static void unbind(Context ctx, Name name) throws NamingException
ctx - the parent JNDI Context under which the name will be unboundname - The name to unbindNamingException - for any errorCopyright © 2018 Nuxeo. All rights reserved.