Class MutablePooledContextSource

All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean, ContextSource, BaseLdapPathSource

public class MutablePooledContextSource extends PooledContextSource
A PooledContextSource subclass that creates MutableDelegatingLdapContext instances. This enables the Spring LDAP pooling to be used in scenarios that require request controls to be set, such as paged results.
Since:
2.0
  • Constructor Details

    • MutablePooledContextSource

      public MutablePooledContextSource(PoolConfig poolConfig)
      Creates a new pooling context source, setting up the DirContext object factory and generic keyed object pool.
      Parameters:
      poolConfig - pool configurations to set.
  • Method Details

    • getContext

      protected DirContext getContext(DirContextType dirContextType)
      Description copied from class: PooledContextSource
      Gets a DirContext of the specified type from the keyed object pool.
      Overrides:
      getContext in class PooledContextSource
      Parameters:
      dirContextType - The type of context to return.
      Returns:
      A wrapped DirContext of the specified type.