public class ContextBindings
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static StringManager |
sm
The string manager for this package.
|
Constructor and Description |
---|
ContextBindings() |
Modifier and Type | Method and Description |
---|---|
static void |
bindClassLoader(java.lang.Object name)
Deprecated.
- unused
|
static void |
bindClassLoader(java.lang.Object name,
java.lang.Object token)
Deprecated.
- unused
|
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)
Deprecated.
- unused
|
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)
Deprecated.
- unused
|
static void |
unbindClassLoader(java.lang.Object name,
java.lang.Object token)
Deprecated.
- unused
|
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)
Deprecated.
- unused
|
static void |
unbindContext(java.lang.Object name,
java.lang.Object token)
Unbind context name.
|
static void |
unbindThread(java.lang.Object name)
Deprecated.
- unused
|
static void |
unbindThread(java.lang.Object name,
java.lang.Object token)
Unbinds a naming context to a thread.
|
protected static final StringManager sm
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 token@Deprecated public 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 token@Deprecated public static void bindThread(java.lang.Object name) throws javax.naming.NamingException
name
- Name of the contextjavax.naming.NamingException
public static void bindThread(java.lang.Object name, java.lang.Object token) throws javax.naming.NamingException
name
- Name of the contexttoken
- Security tokenjavax.naming.NamingException
@Deprecated 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()
@Deprecated public static void bindClassLoader(java.lang.Object name) throws javax.naming.NamingException
name
- Name of the contextjavax.naming.NamingException
@Deprecated public static void bindClassLoader(java.lang.Object name, java.lang.Object token) throws javax.naming.NamingException
name
- Name of the contexttoken
- Security tokenjavax.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 tokenjavax.naming.NamingException
@Deprecated public static void unbindClassLoader(java.lang.Object name)
name
- Name of the context@Deprecated public 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()
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.