public class InMemoryDirectoryServerFactoryBean extends Object implements org.springframework.beans.factory.FactoryBean<com.unboundid.ldap.listener.InMemoryDirectoryServer>, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean
| Modifier and Type | Field and Description |
|---|---|
static String |
BIND_DN |
static String |
BIND_PASSWORD |
| Constructor and Description |
|---|
InMemoryDirectoryServerFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
destroy() |
com.unboundid.ldap.listener.InMemoryDirectoryServer |
getObject() |
Class<com.unboundid.ldap.listener.InMemoryDirectoryServer> |
getObjectType() |
boolean |
isSingleton() |
void |
setBaseDN(String baseDN) |
void |
setBaseDNs(List<String> baseDNs) |
void |
setLdifFile(org.springframework.core.io.Resource ldifFile) |
void |
setLdifFiles(List<org.springframework.core.io.Resource> ldifFiles) |
void |
setLoadDefaultSchemas(boolean loadDefaultSchemas) |
void |
setSchemaFile(org.springframework.core.io.Resource schema) |
void |
setSchemaFiles(List<org.springframework.core.io.Resource> schemaFiles) |
public static final String BIND_DN
public static final String BIND_PASSWORD
public com.unboundid.ldap.listener.InMemoryDirectoryServer getObject()
throws com.unboundid.ldap.sdk.LDAPException,
com.unboundid.ldif.LDIFException,
IOException
getObject in interface org.springframework.beans.factory.FactoryBean<com.unboundid.ldap.listener.InMemoryDirectoryServer>com.unboundid.ldap.sdk.LDAPExceptioncom.unboundid.ldif.LDIFExceptionIOExceptionpublic Class<com.unboundid.ldap.listener.InMemoryDirectoryServer> getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBean<com.unboundid.ldap.listener.InMemoryDirectoryServer>public boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBean<com.unboundid.ldap.listener.InMemoryDirectoryServer>public void destroy()
destroy in interface org.springframework.beans.factory.DisposableBeanpublic void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanpublic void setBaseDNs(List<String> baseDNs)
baseDNs - The set of base DNs to use for the server.public void setBaseDN(String baseDN)
baseDN - The base DN to use for the server.public void setSchemaFiles(List<org.springframework.core.io.Resource> schemaFiles)
schemaFiles - The resources of the LDIF files containing the schema
information to be imported to the server.Schema.getSchema(java.io.File...),
InMemoryDirectoryServerConfig.setSchema(com.unboundid.ldap.sdk.schema.Schema)public void setSchemaFile(org.springframework.core.io.Resource schema)
schema - The resource of the LDIF file containing the schema
information to be imported to the server.Schema.getSchema(java.io.File...),
InMemoryDirectoryServerConfig.setSchema(com.unboundid.ldap.sdk.schema.Schema)public void setLdifFiles(List<org.springframework.core.io.Resource> ldifFiles)
ldifFiles - The resources to the LDIF files from which the entries
will be imported to the server.InMemoryDirectoryServer.importFromLDIF(boolean, com.unboundid.ldif.LDIFReader)public void setLdifFile(org.springframework.core.io.Resource ldifFile)
ldifFile - The resource to the LDIF file from which the entries
will be imported to the server.InMemoryDirectoryServer.importFromLDIF(boolean, com.unboundid.ldif.LDIFReader)public void setLoadDefaultSchemas(boolean loadDefaultSchemas)
loadDefaultSchemas - true if default standard schemas
should be loaded (default), or not.Schema.getDefaultStandardSchema()Copyright © 2013. All rights reserved.