Package org.ldaptive.transport
Class TransportFactory
- java.lang.Object
-
- org.ldaptive.transport.TransportFactory
-
public final class TransportFactory extends Object
Factory for creating connection transports.
-
-
Field Summary
Fields Modifier and Type Field Description private static Logger
LOGGER
Logger for this class.private static String
POOLED_FACTORY_TRANSPORT_PROPERTY
Ldap transport system property.private static String
SINGLE_FACTORY_TRANSPORT_PROPERTY
Ldap transport system property.private static Map<Class<? extends ConnectionFactory>,Constructor<?>>
TRANSPORT_OVERRIDE
Map of connection factory class to transport constructor.
-
Constructor Summary
Constructors Modifier Constructor Description private
TransportFactory()
Default constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Transport
getTransport(Class<? extends ConnectionFactory> clazz)
TheTRANSPORT_OVERRIDE
map is checked and that class is loaded if provided.
-
-
-
Field Detail
-
POOLED_FACTORY_TRANSPORT_PROPERTY
private static final String POOLED_FACTORY_TRANSPORT_PROPERTY
Ldap transport system property.- See Also:
- Constant Field Values
-
SINGLE_FACTORY_TRANSPORT_PROPERTY
private static final String SINGLE_FACTORY_TRANSPORT_PROPERTY
Ldap transport system property.- See Also:
- Constant Field Values
-
LOGGER
private static final Logger LOGGER
Logger for this class.
-
TRANSPORT_OVERRIDE
private static final Map<Class<? extends ConnectionFactory>,Constructor<?>> TRANSPORT_OVERRIDE
Map of connection factory class to transport constructor.
-
-
Method Detail
-
getTransport
public static Transport getTransport(Class<? extends ConnectionFactory> clazz)
TheTRANSPORT_OVERRIDE
map is checked and that class is loaded if provided. Otherwise, the default transport for the supplied class is provided.- Parameters:
clazz
- to return transport for- Returns:
- transport
-
-