| Modifier and Type | Field and Description |
|---|---|
| private static final Map | clBindings
Bindings class loader - naming context. |
| private static final Map | clObjectBindings
Bindings class loader - object. |
| private static final Map | objectBindings
Bindings object - naming context. |
| protected static final StringManager | sm
The string manager for this package. |
| private static final Map | threadBindings
Bindings thread - naming context. |
| private static final Map | threadObjectBindings
Bindings thread - object. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static void | bindClassLoader(Object
Object bound to the required naming context obj, Object Security token token, ClassLoader The class loader to bind to the naming context classLoader)Binds a naming context to a class loader. |
| public static void | bindContext(Object
Object to bind with naming context obj, Context Associated naming context instance context)Binds an object and a naming context. |
| public static void | bindContext(Object
Object to bind with naming context obj, Context Associated naming context instance context, Object Security token token)Binds an object and a naming context. |
| public static void | bindThread(Object
Object bound to the required naming context obj, Object Security token token)Binds a naming context to a thread. |
| public static Context | Returns: the naming context bound to current class loader or one of its parentsRetrieves the naming context bound to a class loader. |
| pack-priv static String | getClassLoaderName()
Retrieves the name of the object bound to the naming context that is also bound to the thread context class loader. |
| pack-priv static Context | |
| public static Context | Returns: The naming context bound to the current thread.Retrieves the naming context bound to the current thread. |
| pack-priv static String | getThreadName()
Retrieves the name of the object bound to the naming context that is also bound to the current thread. |
| public static boolean | Returns: true if the thread context class loader or one of
its parents is bound to a naming context, otherwise
falseTests if the thread context class loader is bound to a context. |
| public static boolean | Returns: true if the current thread is bound to a naming
context, otherwise falseTests if current thread is bound to a naming context. |
| public static void | unbindClassLoader(Object
Object bound to the required naming context obj, Object Security token token, ClassLoader The class loader bound to the naming context classLoader)Unbinds a naming context and a class loader. |
| public static void | unbindContext(Object
Object to unbind obj, Object Security token token)Unbinds an object and a naming context. |
| public static void | unbindThread(Object
Object bound to the required naming context obj, Object Security token token)Unbinds a thread and a naming context. |
| clBindings | back to summary |
|---|---|
| private static final Map<ClassLoader, Context> clBindings Bindings class loader - naming context. Keyed by class loader. | |
| clObjectBindings | back to summary |
|---|---|
| private static final Map<ClassLoader, Object> clObjectBindings Bindings class loader - object. Keyed by class loader. | |
| objectBindings | back to summary |
|---|---|
| private static final Map<Object, Context> objectBindings Bindings object - naming context. Keyed by object. | |
| sm | back to summary |
|---|---|
| protected static final StringManager sm The string manager for this package. | |
| threadBindings | back to summary |
|---|---|
| private static final Map<Thread, Context> threadBindings Bindings thread - naming context. Keyed by thread. | |
| threadObjectBindings | back to summary |
|---|---|
| private static final Map<Thread, Object> threadObjectBindings Bindings thread - object. Keyed by thread. | |
| ContextBindings | back to summary |
|---|---|
| public ContextBindings() | |
| bindClassLoader | back to summary |
|---|---|
| public static void bindClassLoader(Object obj, Object token, ClassLoader classLoader) throws NamingException Binds a naming context to a class loader.
| |
| bindContext | back to summary |
|---|---|
| public static void bindContext(Object obj, Context context) Binds an object and a naming context. | |
| bindContext | back to summary |
|---|---|
| public static void bindContext(Object obj, Context context, Object token) Binds an object and a naming context. | |
| bindThread | back to summary |
|---|---|
| public static void bindThread(Object obj, Object token) throws NamingException Binds a naming context to a thread.
| |
| getClassLoader | back to summary |
|---|---|
| public static Context getClassLoader() throws NamingException Retrieves the naming context bound to a class loader.
| |
| getClassLoaderName | back to summary |
|---|---|
| pack-priv static String getClassLoaderName() throws NamingException Retrieves the name of the object bound to the naming context that is also bound to the thread context class loader. | |
| getContext | back to summary |
|---|---|
| pack-priv static Context getContext(Object obj) Retrieve a naming context.
| |
| getThread | back to summary |
|---|---|
| public static Context getThread() throws NamingException Retrieves the naming context bound to the current thread.
| |
| getThreadName | back to summary |
|---|---|
| pack-priv static String getThreadName() throws NamingException Retrieves the name of the object bound to the naming context that is also bound to the current thread. | |
| isClassLoaderBound | back to summary |
|---|---|
| public static boolean isClassLoaderBound() Tests if the thread context class loader is bound to a context.
| |
| isThreadBound | back to summary |
|---|---|
| public static boolean isThreadBound() Tests if current thread is bound to a naming context.
| |
| unbindClassLoader | back to summary |
|---|---|
| public static void unbindClassLoader(Object obj, Object token, ClassLoader classLoader) Unbinds a naming context and a class loader.
| |
| unbindContext | back to summary |
|---|---|
| public static void unbindContext(Object obj, Object token) Unbinds an object and a naming context. | |
| unbindThread | back to summary |
|---|---|
| public static void unbindThread(Object obj, Object token) Unbinds a thread and a naming context. | |