org.seasar.extension.j2ee
クラス JndiContext

java.lang.Object
  拡張org.seasar.extension.j2ee.JndiContext
すべての実装インタフェース:
Context

public class JndiContext
extends Object
implements Context

S2コンテナにJNDI経由でアクセスするためのコンテキストです。

作成者:
higa

フィールドの概要
protected  Hashtable env
          環境です。
protected  String path
          パスです。
 
インタフェース javax.naming.Context から継承したフィールド
APPLET, AUTHORITATIVE, BATCHSIZE, DNS_URL, INITIAL_CONTEXT_FACTORY, LANGUAGE, OBJECT_FACTORIES, PROVIDER_URL, REFERRAL, SECURITY_AUTHENTICATION, SECURITY_CREDENTIALS, SECURITY_PRINCIPAL, SECURITY_PROTOCOL, STATE_FACTORIES, URL_PKG_PREFIXES
 
コンストラクタの概要
JndiContext(Hashtable env)
          JndiContextを作成します。
 
メソッドの概要
 Object addToEnvironment(String propName, Object propVal)
           
 void bind(Name name, Object obj)
           
protected  void bind(String[] names, Object obj)
          JNDI空間にバインドします。
 void bind(String name, Object obj)
           
 void close()
           
 Name composeName(Name name, Name prefix)
           
 String composeName(String name, String prefix)
           
protected  NamingException createNamingException(String message, Throwable cause)
          NamingExceptionを作成します。
 Context createSubcontext(Name name)
           
 Context createSubcontext(String name)
           
 void destroySubcontext(Name name)
           
 void destroySubcontext(String name)
           
 Hashtable getEnvironment()
           
 String getNameInNamespace()
           
 NameParser getNameParser(Name name)
           
 NameParser getNameParser(String name)
           
 NamingEnumeration list(Name name)
           
 NamingEnumeration list(String name)
           
 NamingEnumeration listBindings(Name name)
           
 NamingEnumeration listBindings(String name)
           
 Object lookup(Name name)
           
 Object lookup(String name)
           
 Object lookupLink(Name name)
           
 Object lookupLink(String name)
           
 void rebind(Name name, Object obj)
           
 void rebind(String name, Object obj)
           
 Object removeFromEnvironment(String propName)
           
 void rename(Name oldName, Name newName)
           
 void rename(String oldName, String newName)
           
 void unbind(Name name)
           
 void unbind(String name)
           
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

env

protected final Hashtable env
環境です。


path

protected final String path
パスです。

コンストラクタの詳細

JndiContext

public JndiContext(Hashtable env)
JndiContextを作成します。

パラメータ:
env - 環境
メソッドの詳細

addToEnvironment

public Object addToEnvironment(String propName,
                               Object propVal)
                        throws NamingException
定義:
インタフェース Context 内の addToEnvironment
例外:
NamingException

bind

public void bind(Name name,
                 Object obj)
          throws NamingException
定義:
インタフェース Context 内の bind
例外:
NamingException

bind

public void bind(String name,
                 Object obj)
          throws NamingException
定義:
インタフェース Context 内の bind
例外:
NamingException

close

public void close()
           throws NamingException
定義:
インタフェース Context 内の close
例外:
NamingException

composeName

public Name composeName(Name name,
                        Name prefix)
                 throws NamingException
定義:
インタフェース Context 内の composeName
例外:
NamingException

composeName

public String composeName(String name,
                          String prefix)
                   throws NamingException
定義:
インタフェース Context 内の composeName
例外:
NamingException

createSubcontext

public Context createSubcontext(Name name)
                         throws NamingException
定義:
インタフェース Context 内の createSubcontext
例外:
NamingException

createSubcontext

public Context createSubcontext(String name)
                         throws NamingException
定義:
インタフェース Context 内の createSubcontext
例外:
NamingException

destroySubcontext

public void destroySubcontext(Name name)
                       throws NamingException
定義:
インタフェース Context 内の destroySubcontext
例外:
NamingException

destroySubcontext

public void destroySubcontext(String name)
                       throws NamingException
定義:
インタフェース Context 内の destroySubcontext
例外:
NamingException

getEnvironment

public Hashtable getEnvironment()
                         throws NamingException
定義:
インタフェース Context 内の getEnvironment
例外:
NamingException

getNameInNamespace

public String getNameInNamespace()
                          throws NamingException
定義:
インタフェース Context 内の getNameInNamespace
例外:
NamingException

getNameParser

public NameParser getNameParser(Name name)
                         throws NamingException
定義:
インタフェース Context 内の getNameParser
例外:
NamingException

getNameParser

public NameParser getNameParser(String name)
                         throws NamingException
定義:
インタフェース Context 内の getNameParser
例外:
NamingException

list

public NamingEnumeration list(Name name)
                       throws NamingException
定義:
インタフェース Context 内の list
例外:
NamingException

list

public NamingEnumeration list(String name)
                       throws NamingException
定義:
インタフェース Context 内の list
例外:
NamingException

listBindings

public NamingEnumeration listBindings(Name name)
                               throws NamingException
定義:
インタフェース Context 内の listBindings
例外:
NamingException

listBindings

public NamingEnumeration listBindings(String name)
                               throws NamingException
定義:
インタフェース Context 内の listBindings
例外:
NamingException

lookup

public Object lookup(Name name)
              throws NamingException
定義:
インタフェース Context 内の lookup
例外:
NamingException

lookup

public Object lookup(String name)
              throws NamingException
定義:
インタフェース Context 内の lookup
例外:
NamingException

lookupLink

public Object lookupLink(Name name)
                  throws NamingException
定義:
インタフェース Context 内の lookupLink
例外:
NamingException

lookupLink

public Object lookupLink(String name)
                  throws NamingException
定義:
インタフェース Context 内の lookupLink
例外:
NamingException

rebind

public void rebind(Name name,
                   Object obj)
            throws NamingException
定義:
インタフェース Context 内の rebind
例外:
NamingException

rebind

public void rebind(String name,
                   Object obj)
            throws NamingException
定義:
インタフェース Context 内の rebind
例外:
NamingException

removeFromEnvironment

public Object removeFromEnvironment(String propName)
                             throws NamingException
定義:
インタフェース Context 内の removeFromEnvironment
例外:
NamingException

rename

public void rename(Name oldName,
                   Name newName)
            throws NamingException
定義:
インタフェース Context 内の rename
例外:
NamingException

rename

public void rename(String oldName,
                   String newName)
            throws NamingException
定義:
インタフェース Context 内の rename
例外:
NamingException

unbind

public void unbind(Name name)
            throws NamingException
定義:
インタフェース Context 内の unbind
例外:
NamingException

unbind

public void unbind(String name)
            throws NamingException
定義:
インタフェース Context 内の unbind
例外:
NamingException

bind

protected void bind(String[] names,
                    Object obj)
             throws NamingException
JNDI空間にバインドします。

パラメータ:
names - 名前をデリミタで分割した配列
obj - オブジェクト
例外:
NamingException - JNDI例外が発生した場合

createNamingException

protected NamingException createNamingException(String message,
                                                Throwable cause)
NamingExceptionを作成します。

パラメータ:
message - メッセージ
cause - 原因
戻り値:
NamingException


Copyright ? 2004-2007 The Seasar Foundation. All Rights Reserved.