Package org.ldaptive
Interface ConnectionFactory
- All Known Implementing Classes:
DefaultConnectionFactory,PooledConnectionFactory,SingleConnectionFactory
public interface ConnectionFactory
Interface for connection factories.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Free any resources associated with this factory.Creates a new connection.Returns the connection configuration used to create connections.
-
Method Details
-
getConnection
Creates a new connection.- Returns:
- connection
- Throws:
LdapException- if a connection cannot be returned
-
getConnectionConfig
ConnectionConfig getConnectionConfig()Returns the connection configuration used to create connections.- Returns:
- connection config
-
close
void close()Free any resources associated with this factory.
-