Began restructuring the pooling code.
This commit is contained in:
@@ -23,7 +23,7 @@ import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.apache.commons.pool.BaseKeyedPoolableObjectFactory;
|
||||
import org.springframework.ldap.core.ContextSource;
|
||||
import org.springframework.ldap.validation.DirContextValidator;
|
||||
import org.springframework.ldap.pool.validation.DirContextValidator;
|
||||
|
||||
/**
|
||||
* Factory that creates {@link DirContext} instances for pooling via a
|
||||
|
||||
@@ -30,7 +30,7 @@ import org.apache.commons.pool.impl.GenericObjectPool;
|
||||
import org.springframework.dao.DataAccessResourceFailureException;
|
||||
import org.springframework.ldap.NamingException;
|
||||
import org.springframework.ldap.core.ContextSource;
|
||||
import org.springframework.ldap.validation.DirContextValidator;
|
||||
import org.springframework.ldap.pool.validation.DirContextValidator;
|
||||
|
||||
/**
|
||||
* A {@link ContextSource} implementation that wraps an object pool and another {@link ContextSource}.
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.ldap.validation;
|
||||
package org.springframework.ldap.pool.validation;
|
||||
|
||||
import javax.naming.NamingEnumeration;
|
||||
import javax.naming.directory.DirContext;
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.ldap.validation;
|
||||
package org.springframework.ldap.pool.validation;
|
||||
|
||||
import javax.naming.directory.DirContext;
|
||||
|
||||
@@ -22,7 +22,7 @@ import javax.naming.ldap.LdapContext;
|
||||
import org.apache.commons.pool.KeyedObjectPool;
|
||||
import org.easymock.MockControl;
|
||||
import org.springframework.ldap.core.ContextSource;
|
||||
import org.springframework.ldap.validation.DirContextValidator;
|
||||
import org.springframework.ldap.pool.validation.DirContextValidator;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ import javax.naming.directory.DirContext;
|
||||
|
||||
import org.easymock.MockControl;
|
||||
import org.springframework.ldap.core.ContextSource;
|
||||
import org.springframework.ldap.validation.DirContextValidator;
|
||||
import org.springframework.ldap.pool.validation.DirContextValidator;
|
||||
|
||||
/**
|
||||
* @author Eric Dalquist <a href="mailto:eric.dalquist@doit.wisc.edu">eric.dalquist@doit.wisc.edu</a>
|
||||
|
||||
@@ -22,7 +22,7 @@ import org.easymock.MockControl;
|
||||
import org.springframework.dao.DataAccessResourceFailureException;
|
||||
import org.springframework.ldap.core.ContextSource;
|
||||
import org.springframework.ldap.pool.PoolingContextSource.WhenExhaustedAction;
|
||||
import org.springframework.ldap.validation.DirContextValidator;
|
||||
import org.springframework.ldap.pool.validation.DirContextValidator;
|
||||
|
||||
/**
|
||||
* @author Eric Dalquist <a href="mailto:eric.dalquist@doit.wisc.edu">eric.dalquist@doit.wisc.edu</a>
|
||||
|
||||
@@ -24,6 +24,7 @@ import junit.framework.TestCase;
|
||||
|
||||
import org.easymock.MockControl;
|
||||
import org.springframework.ldap.pool.DirContextType;
|
||||
import org.springframework.ldap.pool.validation.DefaultDirContextValidator;
|
||||
|
||||
/**
|
||||
* @author Eric Dalquist <a
|
||||
|
||||
Reference in New Issue
Block a user