UnboundIdContainer を使用してください。@Deprecated
public class ApacheDSContainer
extends java.lang.Object
implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean, org.springframework.context.Lifecycle, org.springframework.context.ApplicationContextAwareLdapServerBeanDefinitionParser によって使用されます。インスタンスは、各組み込みサーバーインスタンスのアプリケーションコンテキストに保存されます。コンテキストが初期化されるとサーバーを起動し、閉じられるとサーバーをシャットダウンします。これは一時的な組み込み使用を目的としており、開始 / 停止の境界を越えて変更を保持しません。作業ディレクトリはシャットダウン時に削除されます。同じ構成の単一の JVM プロセスで繰り返し使用する場合(たとえば、テスト中にアプリケーションコンテキストを繰り返しロードする場合)、アプリケーションコンテキストを閉じて、Bean を破棄し、サーバーをシャットダウンしてから実行することが重要です。もう一度開始します。
このクラスは、テストと内部セキュリティ名前空間の使用のみを目的としており、フレームワークのパブリック API の一部とは見なされません。
| コンストラクターと説明 |
|---|
ApacheDSContainer(java.lang.String root, java.lang.String ldifs) 使用すべきではありません。 |
| 修飾子と型 | メソッドと説明 |
|---|---|
void | afterPropertiesSet() 使用すべきではありません。 |
void | destroy() 使用すべきではありません。 |
int | getPort() 使用すべきではありません。 |
org.apache.directory.server.core.DefaultDirectoryService | getService() 使用すべきではありません。 |
boolean | isRunning() 使用すべきではありません。 |
void | setApplicationContext(org.springframework.context.ApplicationContext applicationContext) 使用すべきではありません。 |
void | setCertificatePassord(java.lang.String certificatePassord) 使用すべきではありません。 基盤となる LdapServer に証明書のパスワードを設定します。 |
void | setKeyStoreFile(java.io.File keyStoreFile) 使用すべきではありません。 keyStore は null であってはならず、有効なファイルである必要があります。 |
void | setLdapOverSslEnabled(boolean ldapOverSslEnabled) 使用すべきではありません。 true に設定すると、LDAP over SSL(LDAP)が有効になります。 |
void | setPort(int port) 使用すべきではありません。 |
void | setWorkingDirectory(java.io.File workingDir) 使用すべきではありません。 |
void | start() 使用すべきではありません。 |
void | stop() 使用すべきではありません。 |
public ApacheDSContainer(java.lang.String root,
java.lang.String ldifs)
throws java.lang.Exceptionjava.lang.Exceptionpublic void afterPropertiesSet()
throws java.lang.Exceptionorg.springframework.beans.factory.InitializingBean 内の afterPropertiesSet java.lang.Exceptionpublic void destroy()
org.springframework.beans.factory.DisposableBean 内の destroy public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansExceptionorg.springframework.context.ApplicationContextAware 内の setApplicationContext org.springframework.beans.BeansExceptionpublic void setWorkingDirectory(java.io.File workingDir)
public void setPort(int port)
public int getPort()
public void setLdapOverSslEnabled(boolean ldapOverSslEnabled)
ldapOverSslEnabled - 設定されていない場合、デフォルトで false になります public void setKeyStoreFile(java.io.File keyStoreFile)
LdapServer に keyStore ファイルを設定します。keyStoreFile - LDAP が有効になっている場合は必須 public void setCertificatePassord(java.lang.String certificatePassord)
LdapServer に証明書のパスワードを設定します。certificatePassord - null の可能性があります public org.apache.directory.server.core.DefaultDirectoryService getService()
public void start()
org.springframework.context.Lifecycle 内の start public void stop()
org.springframework.context.Lifecycle 内の stop public boolean isRunning()
org.springframework.context.Lifecycle 内の isRunning