@DeprecatedSE 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, waitSE
public 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
NamingExceptionSE
public NamingEnumerationSE<BindingSE> listBindings(StringSE root) throws NamingExceptionSE
ContextSE
の listBindingsSE
NamingExceptionSE
public ObjectSE lookup(StringSE lookupName) throws NameNotFoundExceptionSE
メモ: アプリケーションで直接使用するためのものではありません。標準の InitialContext JNDI ルックアップで使用されます。
ContextSE
の lookupSE
NameNotFoundExceptionSE
- オブジェクトが見つからなかった場合 public ObjectSE lookupLink(StringSE name) throws NameNotFoundExceptionSE
ContextSE
の lookupLinkSE
NameNotFoundExceptionSE
public 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
NameNotFoundExceptionSE
public 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
NamingExceptionSE
public NamingEnumerationSE<BindingSE> listBindings(NameSE name) throws NamingExceptionSE
ContextSE
の listBindingsSE
NamingExceptionSE
public ObjectSE lookup(NameSE name) throws NamingExceptionSE
ContextSE
の lookupSE
NamingExceptionSE
public ObjectSE lookupLink(NameSE name) throws NamingExceptionSE
ContextSE
の lookupLinkSE
NamingExceptionSE
public void bind(NameSE name, ObjectSE obj) throws NamingExceptionSE
ContextSE
の bindSE
NamingExceptionSE
public void unbind(NameSE name) throws NamingExceptionSE
ContextSE
の unbindSE
NamingExceptionSE
public void rebind(NameSE name, ObjectSE obj) throws NamingExceptionSE
ContextSE
の rebindSE
NamingExceptionSE
public void rename(NameSE oldName, NameSE newName) throws NamingExceptionSE
ContextSE
の renameSE
NamingExceptionSE
public ContextSE createSubcontext(NameSE name) throws NamingExceptionSE
ContextSE
の createSubcontextSE
NamingExceptionSE
public void destroySubcontext(NameSE name) throws NamingExceptionSE
ContextSE
の destroySubcontextSE
NamingExceptionSE
public StringSE getNameInNamespace() throws NamingExceptionSE
ContextSE
の getNameInNamespaceSE
NamingExceptionSE
public NameParserSE getNameParser(NameSE name) throws NamingExceptionSE
ContextSE
の getNameParserSE
NamingExceptionSE
public NameParserSE getNameParser(StringSE name) throws NamingExceptionSE
ContextSE
の getNameParserSE
NamingExceptionSE
public NameSE composeName(NameSE name, NameSE prefix) throws NamingExceptionSE
ContextSE
の composeNameSE
NamingExceptionSE