|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.runtime.test.runner.JndiHelper
public class JndiHelper
helper for common jndi operations copied from jboss Util class
Constructor Summary | |
---|---|
JndiHelper()
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JndiHelper()
Method Detail |
---|
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 unbind
NamingException
- 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 unbind
NamingException
- for any error
|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |