Package org.ldaptive
Interface ConnectionFactory
-
- All Known Implementing Classes:
DefaultConnectionFactory
,PooledConnectionFactory
,SingleConnectionFactory
public interface ConnectionFactory
Interface for connection factories.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
Free any resources associated with this factory.Connection
getConnection()
Creates a new connection.ConnectionConfig
getConnectionConfig()
Returns the connection configuration used to create connections.
-
-
-
Method Detail
-
getConnection
Connection getConnection() throws LdapException
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.
-
-