public class SimpleNamingContext extends ObjectSE implements ContextSE
このクラスは、アプリケーションによる直接的な使用を目的としたものではありませんが、たとえばユニットテストで JndiTemplate の createInitialContext メソッドをオーバーライドするために使用できます。通常、SimpleNamingContextBuilder は、JVM レベルの JNDI 環境のセットアップに使用されます。
SimpleNamingContextBuilder, JndiTemplate.createInitialContext()APPLETSE, AUTHORITATIVESE, BATCHSIZESE, DNS_URLSE, INITIAL_CONTEXT_FACTORYSE, LANGUAGESE, OBJECT_FACTORIESSE, PROVIDER_URLSE, REFERRALSE, SECURITY_AUTHENTICATIONSE, SECURITY_CREDENTIALSSE, SECURITY_PRINCIPALSE, SECURITY_PROTOCOLSE, STATE_FACTORIESSE, URL_PKG_PREFIXESSE| コンストラクターと説明 |
|---|
SimpleNamingContext() 新しい名前付けコンテキストを作成します。 |
SimpleNamingContext(StringSE root) 指定されたネーミングルートで新しいネーミングコンテキストを作成します。 |
SimpleNamingContext(StringSE root, HashtableSE<StringSE, ObjectSE> boundObjects, HashtableSE<StringSE, ObjectSE> env) 指定されたネーミングルート、指定された名前 / オブジェクトマップ、JNDI 環境エントリを使用して、新しいネーミングコンテキストを作成します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEpublic SimpleNamingContext()
public SimpleNamingContext(StringSE root)
public SimpleNamingContext(StringSE root, HashtableSE<StringSE,ObjectSE> boundObjects, @Nullable HashtableSE<StringSE,ObjectSE> env)
public NamingEnumerationSE<NameClassPairSE> list(StringSE root) throws NamingExceptionSE
ContextSE の listSE NamingExceptionSEpublic NamingEnumerationSE<BindingSE> listBindings(StringSE root) throws NamingExceptionSE
ContextSE の listBindingsSE NamingExceptionSEpublic ObjectSE lookup(StringSE lookupName) throws NameNotFoundExceptionSE
メモ: アプリケーションで直接使用するためのものではありません。標準の InitialContext JNDI ルックアップで使用されます。
ContextSE の lookupSE NameNotFoundExceptionSE - オブジェクトが見つからなかった場合 public ObjectSE lookupLink(StringSE name) throws NameNotFoundExceptionSE
ContextSE の lookupLinkSE NameNotFoundExceptionSEpublic void bind(StringSE name, ObjectSE obj)
ContextSE の bindSE SimpleNamingContextBuilder.bind(java.lang.String, java.lang.Object)public void rename(StringSE oldName, StringSE newName) throws NameNotFoundExceptionSE
ContextSE の renameSE NameNotFoundExceptionSEpublic ContextSE createSubcontext(StringSE name)
ContextSE の createSubcontextSE public void destroySubcontext(StringSE name)
ContextSE の destroySubcontextSE public StringSE composeName(StringSE name, StringSE prefix)
ContextSE の composeNameSE public HashtableSE<StringSE,ObjectSE> getEnvironment()
ContextSE の getEnvironmentSE @Nullable public ObjectSE addToEnvironment(StringSE propName, ObjectSE propVal)
ContextSE の addToEnvironmentSE public ObjectSE removeFromEnvironment(StringSE propName)
ContextSE の removeFromEnvironmentSE public NamingEnumerationSE<NameClassPairSE> list(NameSE name) throws NamingExceptionSE
ContextSE の listSE NamingExceptionSEpublic NamingEnumerationSE<BindingSE> listBindings(NameSE name) throws NamingExceptionSE
ContextSE の listBindingsSE NamingExceptionSEpublic ObjectSE lookup(NameSE name) throws NamingExceptionSE
ContextSE の lookupSE NamingExceptionSEpublic ObjectSE lookupLink(NameSE name) throws NamingExceptionSE
ContextSE の lookupLinkSE NamingExceptionSEpublic void bind(NameSE name, ObjectSE obj) throws NamingExceptionSE
ContextSE の bindSE NamingExceptionSEpublic void unbind(NameSE name) throws NamingExceptionSE
ContextSE の unbindSE NamingExceptionSEpublic void rebind(NameSE name, ObjectSE obj) throws NamingExceptionSE
ContextSE の rebindSE NamingExceptionSEpublic void rename(NameSE oldName, NameSE newName) throws NamingExceptionSE
ContextSE の renameSE NamingExceptionSEpublic ContextSE createSubcontext(NameSE name) throws NamingExceptionSE
ContextSE の createSubcontextSE NamingExceptionSEpublic void destroySubcontext(NameSE name) throws NamingExceptionSE
ContextSE の destroySubcontextSE NamingExceptionSEpublic StringSE getNameInNamespace() throws NamingExceptionSE
ContextSE の getNameInNamespaceSE NamingExceptionSEpublic NameParserSE getNameParser(NameSE name) throws NamingExceptionSE
ContextSE の getNameParserSE NamingExceptionSEpublic NameParserSE getNameParser(StringSE name) throws NamingExceptionSE
ContextSE の getNameParserSE NamingExceptionSEpublic NameSE composeName(NameSE name, NameSE prefix) throws NamingExceptionSE
ContextSE の composeNameSE NamingExceptionSE