|
Nuxeo Enterprise Platform 5.4 | |||||||||
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(javax.naming.Context ctx,
javax.naming.Name name,
java.lang.Object value)
Bind val to name in ctx, and make sure that all intermediate contexts exist |
static void |
bind(javax.naming.Context ctx,
java.lang.String name,
java.lang.Object value)
Bind val to name in ctx, and make sure that all intermediate contexts exist |
static javax.naming.Context |
createSubcontext(javax.naming.Context ctx,
javax.naming.Name name)
Create a subcontext including any intermediate contexts. |
static javax.naming.Context |
createSubcontext(javax.naming.Context ctx,
java.lang.String name)
Create a subcontext including any intermediate contexts. |
static void |
rebind(javax.naming.Context ctx,
javax.naming.Name name,
java.lang.Object value)
Rebind val to name in ctx, and make sure that all intermediate contexts exist |
static void |
rebind(javax.naming.Context ctx,
java.lang.String name,
java.lang.Object value)
Rebind val to name in ctx, and make sure that all intermediate contexts exist |
static void |
unbind(javax.naming.Context ctx,
javax.naming.Name name)
Unbinds a name from ctx, and removes parents if they are empty |
static void |
unbind(javax.naming.Context ctx,
java.lang.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 javax.naming.Context createSubcontext(javax.naming.Context ctx, java.lang.String name) throws javax.naming.NamingException
ctx
- the parent JNDI Context under which value will be boundname
- the name relative to ctx of the subcontext.
javax.naming.NamingException
- on any JNDI failurepublic static javax.naming.Context createSubcontext(javax.naming.Context ctx, javax.naming.Name name) throws javax.naming.NamingException
ctx
- the parent JNDI Context under which value will be boundname
- the name relative to ctx of the subcontext.
javax.naming.NamingException
- on any JNDI failurepublic static void bind(javax.naming.Context ctx, java.lang.String name, java.lang.Object value) throws javax.naming.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.
javax.naming.NamingException
- for any errorpublic static void bind(javax.naming.Context ctx, javax.naming.Name name, java.lang.Object value) throws javax.naming.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.
javax.naming.NamingException
- for any errorpublic static void rebind(javax.naming.Context ctx, java.lang.String name, java.lang.Object value) throws javax.naming.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.
javax.naming.NamingException
- for any errorpublic static void rebind(javax.naming.Context ctx, javax.naming.Name name, java.lang.Object value) throws javax.naming.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.
javax.naming.NamingException
- for any errorpublic static void unbind(javax.naming.Context ctx, java.lang.String name) throws javax.naming.NamingException
ctx
- the parent JNDI Context under which the name will be unboundname
- The name to unbind
javax.naming.NamingException
- for any errorpublic static void unbind(javax.naming.Context ctx, javax.naming.Name name) throws javax.naming.NamingException
ctx
- the parent JNDI Context under which the name will be unboundname
- The name to unbind
javax.naming.NamingException
- for any error
|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |