public class MutablePooledContextSource extends PooledContextSource
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.keyedObjectPool, logger| Constructor and Description |
|---|
MutablePooledContextSource(PoolConfig poolConfig)
Creates a new pooling context source, setting up the DirContext object
factory and generic keyed object pool.
|
| Modifier and Type | Method and Description |
|---|---|
protected DirContext |
getContext(DirContextType dirContextType)
Gets a DirContext of the specified type from the keyed object pool.
|
destroy, getContext, getContextSource, getDirContextValidator, getNumActive, getNumActiveRead, getNumActiveWrite, getNumIdle, getNumIdleRead, getNumIdleWrite, getNumWaiters, getPoolConfig, getReadOnlyContext, getReadWriteContext, getTarget, setContextSource, setDirContextValidator, setNonTransientExceptionsgetBaseLdapName, getBaseLdapPath, getBaseLdapPathAsStringpublic MutablePooledContextSource(PoolConfig poolConfig)
poolConfig - pool configurations to set.protected DirContext getContext(DirContextType dirContextType)
PooledContextSourcegetContext in class PooledContextSourcedirContextType - The type of context to return.