Class TestContextSourceFactoryBean
- java.lang.Object
-
- org.springframework.beans.factory.config.AbstractFactoryBean<org.springframework.ldap.core.ContextSource>
-
- org.springframework.ldap.test.unboundid.TestContextSourceFactoryBean
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanClassLoaderAware,org.springframework.beans.factory.BeanFactoryAware,org.springframework.beans.factory.DisposableBean,org.springframework.beans.factory.FactoryBean<org.springframework.ldap.core.ContextSource>,org.springframework.beans.factory.InitializingBean
public class TestContextSourceFactoryBean extends org.springframework.beans.factory.config.AbstractFactoryBean<org.springframework.ldap.core.ContextSource>
-
-
Constructor Summary
Constructors Constructor Description TestContextSourceFactoryBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.springframework.ldap.core.ContextSourcecreateInstance()protected voiddestroyInstance(org.springframework.ldap.core.ContextSource instance)java.lang.Class<org.springframework.ldap.core.ContextSource>getObjectType()voidsetAuthenticationSource(org.springframework.ldap.core.AuthenticationSource authenticationSource)voidsetBaseOnTarget(boolean baseOnTarget)voidsetContextSource(org.springframework.ldap.core.ContextSource contextSource)voidsetDefaultPartitionName(java.lang.String defaultPartitionName)voidsetDefaultPartitionSuffix(java.lang.String defaultPartitionSuffix)voidsetDirObjectFactory(java.lang.Class<? extends javax.naming.spi.DirObjectFactory> dirObjectFactory)voidsetLdifFile(org.springframework.core.io.Resource ldifFile)voidsetPassword(java.lang.String password)voidsetPooled(boolean pooled)voidsetPort(int port)voidsetPrincipal(java.lang.String principal)
-
-
-
Method Detail
-
setAuthenticationSource
public void setAuthenticationSource(org.springframework.ldap.core.AuthenticationSource authenticationSource)
-
setPooled
public void setPooled(boolean pooled)
-
setDirObjectFactory
public void setDirObjectFactory(java.lang.Class<? extends javax.naming.spi.DirObjectFactory> dirObjectFactory)
-
setLdifFile
public void setLdifFile(org.springframework.core.io.Resource ldifFile)
-
setBaseOnTarget
public void setBaseOnTarget(boolean baseOnTarget)
-
setDefaultPartitionSuffix
public void setDefaultPartitionSuffix(java.lang.String defaultPartitionSuffix)
-
setPrincipal
public void setPrincipal(java.lang.String principal)
-
setPassword
public void setPassword(java.lang.String password)
-
setDefaultPartitionName
public void setDefaultPartitionName(java.lang.String defaultPartitionName)
-
setPort
public void setPort(int port)
-
setContextSource
public void setContextSource(org.springframework.ldap.core.ContextSource contextSource)
-
createInstance
protected org.springframework.ldap.core.ContextSource createInstance() throws java.lang.Exception- Specified by:
createInstancein classorg.springframework.beans.factory.config.AbstractFactoryBean<org.springframework.ldap.core.ContextSource>- Throws:
java.lang.Exception
-
getObjectType
public java.lang.Class<org.springframework.ldap.core.ContextSource> getObjectType()
- Specified by:
getObjectTypein interfaceorg.springframework.beans.factory.FactoryBean<org.springframework.ldap.core.ContextSource>- Specified by:
getObjectTypein classorg.springframework.beans.factory.config.AbstractFactoryBean<org.springframework.ldap.core.ContextSource>
-
destroyInstance
protected void destroyInstance(org.springframework.ldap.core.ContextSource instance) throws java.lang.Exception- Overrides:
destroyInstancein classorg.springframework.beans.factory.config.AbstractFactoryBean<org.springframework.ldap.core.ContextSource>- Throws:
java.lang.Exception
-
-