@Configuration public class LdapConfiguration extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
LdapConfiguration.WithLdapCondition
Helper class to control conditional provision of LdapTemplate.
|
| Constructor and Description |
|---|
LdapConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.ldap.core.support.LdapContextSource |
contextSource() |
org.springframework.ldap.core.LdapTemplate |
getActiveLdapTemplate() |
@Bean public org.springframework.ldap.core.support.LdapContextSource contextSource()
@Bean(name="ldapTemplate") @Conditional(value=LdapConfiguration.WithLdapCondition.class) public org.springframework.ldap.core.LdapTemplate getActiveLdapTemplate()
Copyright © 2018. All rights reserved.