@Singleton public class LdapConnectionTemplateFactory extends Object
| Constructor and Description |
|---|
LdapConnectionTemplateFactory() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.directory.ldap.client.template.LdapConnectionTemplate |
create(AmbariLdapConfiguration ambariLdapConfiguration)
Creates a new instance based on the provided configuration.
|
org.apache.directory.ldap.client.template.LdapConnectionTemplate |
load()
Loads the persisted LDAP configuration.
|
void |
onConfigChange(AmbariConfigurationChangedEvent event)
The returned connection template instance is recreated whenever the ambari ldap configuration changes
|
public org.apache.directory.ldap.client.template.LdapConnectionTemplate create(AmbariLdapConfiguration ambariLdapConfiguration) throws AmbariLdapException
ambariLdapConfiguration - ambari ldap configuration instanceAmbariLdapExceptionpublic org.apache.directory.ldap.client.template.LdapConnectionTemplate load()
throws AmbariLdapException
AmbariLdapExceptionpublic void onConfigChange(AmbariConfigurationChangedEvent event) throws AmbariLdapException
event - AmbariLdapExceptionCopyright © 2022 Apache Software Foundation. All rights reserved.