|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.naming.ContextBindings
public class ContextBindings
Handles the associations :
Field Summary | |
---|---|
protected static StringManager |
sm
The string manager for this package. |
Constructor Summary | |
---|---|
ContextBindings()
|
Method Summary | |
---|---|
static void |
bindClassLoader(java.lang.Object name)
Binds a naming context to a class loader. |
static void |
bindClassLoader(java.lang.Object name,
java.lang.Object token)
Binds a naming context to a thread. |
static void |
bindClassLoader(java.lang.Object name,
java.lang.Object token,
java.lang.ClassLoader classLoader)
Binds a naming context to a thread. |
static void |
bindContext(java.lang.Object name,
javax.naming.Context context)
Binds a context name. |
static void |
bindContext(java.lang.Object name,
javax.naming.Context context,
java.lang.Object token)
Binds a context name. |
static void |
bindThread(java.lang.Object name)
Binds a naming context to a thread. |
static void |
bindThread(java.lang.Object name,
java.lang.Object token)
Binds a naming context to a thread. |
static javax.naming.Context |
getClassLoader()
Retrieves the naming context bound to a class loader. |
static javax.naming.Context |
getThread()
Retrieves the naming context bound to a thread. |
static boolean |
isClassLoaderBound()
Tests if current class loader is bound to a context. |
static boolean |
isThreadBound()
Tests if current thread is bound to a context. |
static void |
unbindClassLoader(java.lang.Object name)
Unbinds a naming context to a class loader. |
static void |
unbindClassLoader(java.lang.Object name,
java.lang.Object token)
Unbinds a naming context to a class loader. |
static void |
unbindClassLoader(java.lang.Object name,
java.lang.Object token,
java.lang.ClassLoader classLoader)
Unbinds a naming context to a class loader. |
static void |
unbindContext(java.lang.Object name)
Unbind context name. |
static void |
unbindContext(java.lang.Object name,
java.lang.Object token)
Unbind context name. |
static void |
unbindThread(java.lang.Object name)
Unbinds a naming context to a thread. |
static void |
unbindThread(java.lang.Object name,
java.lang.Object token)
Unbinds a naming context to a thread. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static StringManager sm
Constructor Detail |
---|
public ContextBindings()
Method Detail |
---|
public static void bindContext(java.lang.Object name, javax.naming.Context context)
name
- Name of the contextcontext
- Associated naming context instancepublic static void bindContext(java.lang.Object name, javax.naming.Context context, java.lang.Object token)
name
- Name of the contextcontext
- Associated naming context instancetoken
- Security tokenpublic static void unbindContext(java.lang.Object name)
name
- Name of the contextpublic static void unbindContext(java.lang.Object name, java.lang.Object token)
name
- Name of the contexttoken
- Security tokenpublic static void bindThread(java.lang.Object name) throws javax.naming.NamingException
name
- Name of the context
javax.naming.NamingException
public static void bindThread(java.lang.Object name, java.lang.Object token) throws javax.naming.NamingException
name
- Name of the contexttoken
- Security token
javax.naming.NamingException
public static void unbindThread(java.lang.Object name)
name
- Name of the contextpublic static void unbindThread(java.lang.Object name, java.lang.Object token)
name
- Name of the contexttoken
- Security tokenpublic static javax.naming.Context getThread() throws javax.naming.NamingException
javax.naming.NamingException
public static boolean isThreadBound()
public static void bindClassLoader(java.lang.Object name) throws javax.naming.NamingException
name
- Name of the context
javax.naming.NamingException
public static void bindClassLoader(java.lang.Object name, java.lang.Object token) throws javax.naming.NamingException
name
- Name of the contexttoken
- Security token
javax.naming.NamingException
public static void bindClassLoader(java.lang.Object name, java.lang.Object token, java.lang.ClassLoader classLoader) throws javax.naming.NamingException
name
- Name of the contexttoken
- Security token
javax.naming.NamingException
public static void unbindClassLoader(java.lang.Object name)
name
- Name of the contextpublic static void unbindClassLoader(java.lang.Object name, java.lang.Object token)
name
- Name of the contexttoken
- Security tokenpublic static void unbindClassLoader(java.lang.Object name, java.lang.Object token, java.lang.ClassLoader classLoader)
name
- Name of the contexttoken
- Security tokenpublic static javax.naming.Context getClassLoader() throws javax.naming.NamingException
javax.naming.NamingException
public static boolean isClassLoaderBound()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |