@AutoConfiguration(before=LdapAutoConfiguration.class) @EnableConfigurationProperties(value={LdapProperties.class,EmbeddedLdapProperties.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) |
public EmbeddedLdapAutoConfiguration(EmbeddedLdapProperties embeddedProperties)
@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()