Class MutableDelegatingLdapContext

All Implemented Interfaces:
Context, DirContext, LdapContext, DirContextProxy

public class MutableDelegatingLdapContext extends DelegatingLdapContext
Used by MutablePoolingContextSource to wrap a LdapContext, delegating most methods to the underlying context. This class extends DelegatingLdapContext, allowing request controls to be set on the wrapped ldap context. This enables the Spring LDAP pooling to be used for scenarios such as paged results.
  • Constructor Details

    • MutableDelegatingLdapContext

      public MutableDelegatingLdapContext(org.apache.commons.pool.KeyedObjectPool keyedObjectPool, LdapContext delegateLdapContext, DirContextType dirContextType)
      Create a new mutable delegating ldap context for the specified pool, context and context type.
      Parameters:
      keyedObjectPool - The pool the delegate context was checked out from.
      delegateLdapContext - The ldap context to delegate operations to.
      dirContextType - The type of context, used as a key for the pool.
      Throws:
      IllegalArgumentException - if any of the arguments are null
  • Method Details