Class MutablePoolingContextSource
java.lang.Object
org.springframework.ldap.core.support.DelegatingBaseLdapPathContextSourceSupport
org.springframework.ldap.pool.factory.PoolingContextSource
org.springframework.ldap.pool.factory.MutablePoolingContextSource
- All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean, ContextSource, BaseLdapPathSource
A
PoolingContextSource 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.
Request controls set through the returned context are written through to the pooled connection, so they are per-borrower state: they are cleared when the context is closed and returned to the pool, and must be set again by the next borrower.
-
Field Summary
Fields inherited from class PoolingContextSource
keyedObjectPool, logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DirContextgetContext(DirContextType dirContextType) Gets a DirContext of the specified type from the keyed object pool.Methods inherited from class PoolingContextSource
destroy, getContext, getContextSource, getDirContextValidator, getMaxActive, getMaxIdle, getMaxTotal, getMaxWait, getMinEvictableIdleTimeMillis, getMinIdle, getNumActive, getNumIdle, getNumTestsPerEvictionRun, getReadOnlyContext, getReadWriteContext, getTarget, getTestOnBorrow, getTestOnReturn, getTestWhileIdle, getTimeBetweenEvictionRunsMillis, getWhenExhaustedAction, setContextSource, setDirContextValidator, setMaxActive, setMaxIdle, setMaxTotal, setMaxWait, setMinEvictableIdleTimeMillis, setMinIdle, setNonTransientExceptions, setNumTestsPerEvictionRun, setTestOnBorrow, setTestOnReturn, setTestWhileIdle, setTimeBetweenEvictionRunsMillis, setWhenExhaustedActionMethods inherited from class DelegatingBaseLdapPathContextSourceSupport
getBaseLdapName, getBaseLdapPath, getBaseLdapPathAsString
-
Constructor Details
-
MutablePoolingContextSource
public MutablePoolingContextSource()
-
-
Method Details
-
getContext
Description copied from class:PoolingContextSourceGets a DirContext of the specified type from the keyed object pool.- Overrides:
getContextin classPoolingContextSource- Parameters:
dirContextType- The type of context to return.- Returns:
- A wrapped DirContext of the specified type.
-