org.apache.naming

Class ContextBindings

public class ContextBindings extends Object

Handles the associations :

Version: $Revision: 467222 $ $Date: 2006-10-24 05:17:11 +0200 (Tue, 24 Oct 2006) $

Author: Remy Maucherat

Field Summary
protected static StringManagersm
The string manager for this package.
Method Summary
static voidbindClassLoader(Object name)
Binds a naming context to a class loader.
static voidbindClassLoader(Object name, Object token)
Binds a naming context to a thread.
static voidbindClassLoader(Object name, Object token, ClassLoader classLoader)
Binds a naming context to a thread.
static voidbindContext(Object name, Context context)
Binds a context name.
static voidbindContext(Object name, Context context, Object token)
Binds a context name.
static voidbindThread(Object name)
Binds a naming context to a thread.
static voidbindThread(Object name, Object token)
Binds a naming context to a thread.
static ContextgetClassLoader()
Retrieves the naming context bound to a class loader.
static ContextgetThread()
Retrieves the naming context bound to a thread.
static booleanisClassLoaderBound()
Tests if current class loader is bound to a context.
static booleanisThreadBound()
Tests if current thread is bound to a context.
static voidunbindClassLoader(Object name)
Unbinds a naming context to a class loader.
static voidunbindClassLoader(Object name, Object token)
Unbinds a naming context to a class loader.
static voidunbindClassLoader(Object name, Object token, ClassLoader classLoader)
Unbinds a naming context to a class loader.
static voidunbindContext(Object name)
Unbind context name.
static voidunbindContext(Object name, Object token)
Unbind context name.
static voidunbindThread(Object name)
Unbinds a naming context to a thread.
static voidunbindThread(Object name, Object token)
Unbinds a naming context to a thread.

Field Detail

sm

protected static StringManager sm
The string manager for this package.

Method Detail

bindClassLoader

public static void bindClassLoader(Object name)
Binds a naming context to a class loader.

Parameters: name Name of the context

bindClassLoader

public static void bindClassLoader(Object name, Object token)
Binds a naming context to a thread.

Parameters: name Name of the context token Security token

bindClassLoader

public static void bindClassLoader(Object name, Object token, ClassLoader classLoader)
Binds a naming context to a thread.

Parameters: name Name of the context token Security token

bindContext

public static void bindContext(Object name, Context context)
Binds a context name.

Parameters: name Name of the context context Associated naming context instance

bindContext

public static void bindContext(Object name, Context context, Object token)
Binds a context name.

Parameters: name Name of the context context Associated naming context instance token Security token

bindThread

public static void bindThread(Object name)
Binds a naming context to a thread.

Parameters: name Name of the context

bindThread

public static void bindThread(Object name, Object token)
Binds a naming context to a thread.

Parameters: name Name of the context token Security token

getClassLoader

public static Context getClassLoader()
Retrieves the naming context bound to a class loader.

getThread

public static Context getThread()
Retrieves the naming context bound to a thread.

isClassLoaderBound

public static boolean isClassLoaderBound()
Tests if current class loader is bound to a context.

isThreadBound

public static boolean isThreadBound()
Tests if current thread is bound to a context.

unbindClassLoader

public static void unbindClassLoader(Object name)
Unbinds a naming context to a class loader.

Parameters: name Name of the context

unbindClassLoader

public static void unbindClassLoader(Object name, Object token)
Unbinds a naming context to a class loader.

Parameters: name Name of the context token Security token

unbindClassLoader

public static void unbindClassLoader(Object name, Object token, ClassLoader classLoader)
Unbinds a naming context to a class loader.

Parameters: name Name of the context token Security token

unbindContext

public static void unbindContext(Object name)
Unbind context name.

Parameters: name Name of the context

unbindContext

public static void unbindContext(Object name, Object token)
Unbind context name.

Parameters: name Name of the context token Security token

unbindThread

public static void unbindThread(Object name)
Unbinds a naming context to a thread.

Parameters: name Name of the context

unbindThread

public static void unbindThread(Object name, Object token)
Unbinds a naming context to a thread.

Parameters: name Name of the context token Security token

Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.