public class JndiConnectionFactory extends AbstractProviderConnectionFactory<JndiProviderConfig>
InitialLdapContext
class.logger
Constructor and Description |
---|
JndiConnectionFactory(String url,
JndiProviderConfig config,
Map<String,Object> env)
Creates a new jndi connection factory.
|
Modifier and Type | Method and Description |
---|---|
protected JndiConnection |
createInternal(String url)
Create the provider connection and prepare the connection for use.
|
protected Map<String,Object> |
getEnvironment()
Returns the JNDI environment for this connection factory.
|
String |
toString() |
create, getMetadata, getProviderConfig
public JndiConnectionFactory(String url, JndiProviderConfig config, Map<String,Object> env)
url
- of the ldap to connect toconfig
- provider configurationenv
- jndi context environmentprotected Map<String,Object> getEnvironment()
protected JndiConnection createInternal(String url) throws LdapException
AbstractProviderConnectionFactory
createInternal
in class AbstractProviderConnectionFactory<JndiProviderConfig>
url
- to connect toLdapException
- if a connection cannot be establishedpublic String toString()
toString
in class AbstractProviderConnectionFactory<JndiProviderConfig>
Copyright © 2019. All rights reserved.