クラス MutablePooledContextSource

実装済みのインターフェース一覧:
org.springframework.beans.factory.DisposableBean, ContextSource, BaseLdapPathSource

public class MutablePooledContextSource extends PooledContextSource
MutableDelegatingLdapContext インスタンスを作成する PooledContextSource サブクラス。これにより、ページングされた結果など、リクエスト制御の設定が必要なシナリオで Spring LDAP プーリングを使用できるようになります。
導入:
2.0
  • コンストラクターの詳細

    • MutablePooledContextSource

      @DeprecatedSE public MutablePooledContextSource(@Nullable PoolConfig poolConfig)
      使用すべきではありません。
      コンストラクターに基となる ContextSource を指定してください
      新しいプーリングコンテキストソースを作成し、DirContext オブジェクトファクトリと汎用のキー付きオブジェクトプールを設定します。
      パラメーター:
      poolConfig - 設定するプール構成。
    • MutablePooledContextSource

      public MutablePooledContextSource(ContextSource contextSource, @Nullable PoolConfig poolConfig)
      新しいプーリングコンテキストソースを作成し、DirContext オブジェクトファクトリと汎用のキー付きオブジェクトプールを設定します。
      パラメーター:
      contextSource - 基礎となる ContextSource
      poolConfig - 設定するプール構成。
      導入:
      4.1
  • 方法の詳細

    • getContext

      protected DirContextSE getContext(DirContextType dirContextType)
      クラスからコピーされた説明: PooledContextSource
      キー付きオブジェクトプールから、指定された型の DirContext を取得します。
      オーバーライド:
      クラス PooledContextSource の getContext 
      パラメーター:
      dirContextType - 返すコンテキストの型。
      戻り値:
      指定された型のラップされた DirContext。