public class ContextBindings extends 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(Object name)
Deprecated.
- unused
|
static void |
bindClassLoader(Object name,
Object token)
Deprecated.
- unused
|
static void |
bindClassLoader(Object name,
Object token,
ClassLoader classLoader)
Binds a naming context to a thread.
|
static void |
bindContext(Object name,
Context context)
Binds a context name.
|
static void |
bindContext(Object name,
Context context,
Object token)
Binds a context name.
|
static void |
bindThread(Object name)
Deprecated.
- unused
|
static void |
bindThread(Object name,
Object token)
Binds a naming context to a thread.
|
static Context |
getClassLoader()
Retrieves the naming context bound to a class loader.
|
static 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(Object name)
Deprecated.
- unused
|
static void |
unbindClassLoader(Object name,
Object token)
Deprecated.
- unused
|
static void |
unbindClassLoader(Object name,
Object token,
ClassLoader classLoader)
Unbinds a naming context to a class loader.
|
static void |
unbindContext(Object name)
Deprecated.
- unused
|
static void |
unbindContext(Object name,
Object token)
Unbind context name.
|
static void |
unbindThread(Object name)
Deprecated.
- unused
|
static void |
unbindThread(Object name,
Object token)
Unbinds a naming context to a thread.
|
protected static final StringManager sm
public static void bindContext(Object name, Context context)
name
- Name of the contextcontext
- Associated naming context instancepublic static void bindContext(Object name, Context context, Object token)
name
- Name of the contextcontext
- Associated naming context instancetoken
- Security token@Deprecated public static void unbindContext(Object name)
name
- Name of the contextpublic static void unbindContext(Object name, Object token)
name
- Name of the contexttoken
- Security token@Deprecated public static void bindThread(Object name) throws NamingException
name
- Name of the contextNamingException
public static void bindThread(Object name, Object token) throws NamingException
name
- Name of the contexttoken
- Security tokenNamingException
@Deprecated public static void unbindThread(Object name)
name
- Name of the contextpublic static void unbindThread(Object name, Object token)
name
- Name of the contexttoken
- Security tokenpublic static Context getThread() throws NamingException
NamingException
public static boolean isThreadBound()
@Deprecated public static void bindClassLoader(Object name) throws NamingException
name
- Name of the contextNamingException
@Deprecated public static void bindClassLoader(Object name, Object token) throws NamingException
name
- Name of the contexttoken
- Security tokenNamingException
public static void bindClassLoader(Object name, Object token, ClassLoader classLoader) throws NamingException
name
- Name of the contexttoken
- Security tokenNamingException
@Deprecated public static void unbindClassLoader(Object name)
name
- Name of the context@Deprecated public static void unbindClassLoader(Object name, Object token)
name
- Name of the contexttoken
- Security tokenpublic static void unbindClassLoader(Object name, Object token, ClassLoader classLoader)
name
- Name of the contexttoken
- Security tokenpublic static Context getClassLoader() throws NamingException
NamingException
public static boolean isClassLoaderBound()
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.