@Configuration(proxyBeanMethods=false) @EnableConfigurationProperties(value={LdapProperties.class,EmbeddedLdapProperties.class}) @AutoConfigureBefore(value=LdapAutoConfiguration.class) @ConditionalOnClass(value=com.unboundid.ldap.listener.InMemoryDirectoryServer.class) @Conditional(value=org.springframework.boot.autoconfigure.ldap.embedded.EmbeddedLdapAutoConfiguration.EmbeddedLdapCondition.class) public class EmbeddedLdapAutoConfiguration extends Object
Auto-configuration
for Embedded LDAP.Constructor and Description |
---|
EmbeddedLdapAutoConfiguration(EmbeddedLdapProperties embeddedProperties) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
com.unboundid.ldap.listener.InMemoryDirectoryServer |
directoryServer(ApplicationContext applicationContext) |
org.springframework.ldap.core.support.LdapContextSource |
ldapContextSource(Environment environment,
LdapProperties properties) |
public EmbeddedLdapAutoConfiguration(EmbeddedLdapProperties embeddedProperties)
@Bean @DependsOn(value="directoryServer") @ConditionalOnMissingBean public org.springframework.ldap.core.support.LdapContextSource ldapContextSource(Environment environment, LdapProperties properties)
@Bean public com.unboundid.ldap.listener.InMemoryDirectoryServer directoryServer(ApplicationContext applicationContext) throws com.unboundid.ldap.sdk.LDAPException
com.unboundid.ldap.sdk.LDAPException
@PreDestroy public void close()
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.