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