org.apache.naming
クラス ContextBindings

java.lang.Object
  |
  +--org.apache.naming.ContextBindings

public class ContextBindings
extends java.lang.Object

Handles the associations :

バージョン:
$Revision: 1.4 $ $Date: 2001/05/22 20:10:36 $
作成者:
Remy Maucherat

フィールドの概要
protected static StringManager sm
          The string manager for this package.
 
コンストラクタの概要
ContextBindings()
           
 
メソッドの概要
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 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.
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

sm

protected static StringManager sm
The string manager for this package.
コンストラクタの詳細

ContextBindings

public ContextBindings()
メソッドの詳細

bindContext

public static void bindContext(java.lang.Object name,
                               javax.naming.Context context)
Binds a context name.
パラメータ:
name - Name of the context
context - Associated naming context instance

bindContext

public static void bindContext(java.lang.Object name,
                               javax.naming.Context context,
                               java.lang.Object token)
Binds a context name.
パラメータ:
name - Name of the context
context - Associated naming context instance
token - Security token

unbindContext

public static void unbindContext(java.lang.Object name)
Unbind context name.
パラメータ:
name - Name of the context

unbindContext

public static void unbindContext(java.lang.Object name,
                                 java.lang.Object token)
Unbind context name.
パラメータ:
name - Name of the context
token - Security token

bindThread

public static void bindThread(java.lang.Object name)
                       throws javax.naming.NamingException
Binds a naming context to a thread.
パラメータ:
name - Name of the context

bindThread

public static void bindThread(java.lang.Object name,
                              java.lang.Object token)
                       throws javax.naming.NamingException
Binds a naming context to a thread.
パラメータ:
name - Name of the context
token - Security token

unbindThread

public static void unbindThread(java.lang.Object name)
Unbinds a naming context to a thread.
パラメータ:
name - Name of the context

unbindThread

public static void unbindThread(java.lang.Object name,
                                java.lang.Object token)
Unbinds a naming context to a thread.
パラメータ:
name - Name of the context
token - Security token

getThread

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

isThreadBound

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

bindClassLoader

public static void bindClassLoader(java.lang.Object name)
                            throws javax.naming.NamingException
Binds a naming context to a class loader.
パラメータ:
name - Name of the context

bindClassLoader

public static void bindClassLoader(java.lang.Object name,
                                   java.lang.Object token)
                            throws javax.naming.NamingException
Binds a naming context to a thread.
パラメータ:
name - Name of the context
token - Security token

bindClassLoader

public static void bindClassLoader(java.lang.Object name,
                                   java.lang.Object token,
                                   java.lang.ClassLoader classLoader)
                            throws javax.naming.NamingException
Binds a naming context to a thread.
パラメータ:
name - Name of the context
token - Security token

unbindClassLoader

public static void unbindClassLoader(java.lang.Object name)
Unbinds a naming context to a class loader.
パラメータ:
name - Name of the context

unbindClassLoader

public static void unbindClassLoader(java.lang.Object name,
                                     java.lang.Object token)
Unbinds a naming context to a class loader.
パラメータ:
name - Name of the context
token - Security token

getClassLoader

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

isClassLoaderBound

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


Copyright ? 2000-2001 Apache Software Foundation. All Rights Reserved.