@Configuration @EnableConfigurationProperties(value={LdapProperties.class,EmbeddedLdapProperties.class}) @ConditionalOnClass(value=com.unboundid.ldap.listener.InMemoryDirectoryServer.class) @ConditionalOnProperty(prefix="spring.ldap.embedded", name="base-dn") public class EmbeddedLdapAutoConfiguration extends Object
Auto-configuration
for Embedded LDAP.Constructor and Description |
---|
EmbeddedLdapAutoConfiguration(EmbeddedLdapProperties embeddedProperties,
LdapProperties properties,
ConfigurableApplicationContext applicationContext,
Environment environment) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
com.unboundid.ldap.listener.InMemoryDirectoryServer |
directoryServer() |
org.springframework.ldap.core.ContextSource |
ldapContextSource() |
public EmbeddedLdapAutoConfiguration(EmbeddedLdapProperties embeddedProperties, LdapProperties properties, ConfigurableApplicationContext applicationContext, Environment environment)
@Bean @DependsOn(value="directoryServer") @ConditionalOnMissingBean public org.springframework.ldap.core.ContextSource ldapContextSource()
@Bean public com.unboundid.ldap.listener.InMemoryDirectoryServer directoryServer() throws com.unboundid.ldap.sdk.LDAPException
com.unboundid.ldap.sdk.LDAPException
@PreDestroy public void close()
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.