Package org.ldaptive.transport
Class TransportFactory
java.lang.Object
org.ldaptive.transport.TransportFactory
Factory for creating connection transports.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Logger
Logger for this class.private static final String
Ldap transport system property.private static final String
Ldap transport system property.private static final Map<Class<? extends ConnectionFactory>,
Constructor<?>> Map of connection factory class to transport constructor. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Transport
getTransport
(Class<? extends ConnectionFactory> clazz) TheTRANSPORT_OVERRIDE
map is checked and that class is loaded if provided.
-
Field Details
-
POOLED_FACTORY_TRANSPORT_PROPERTY
Ldap transport system property.- See Also:
-
SINGLE_FACTORY_TRANSPORT_PROPERTY
Ldap transport system property.- See Also:
-
LOGGER
private static final org.slf4j.Logger LOGGERLogger for this class. -
TRANSPORT_OVERRIDE
Map of connection factory class to transport constructor.
-
-
Constructor Details
-
TransportFactory
private TransportFactory()Default constructor.
-
-
Method Details
-
getTransport
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
-