Class TransportFactory

java.lang.Object
org.ldaptive.transport.TransportFactory

public final class TransportFactory extends Object
Factory for creating connection transports.
  • Field Details

    • POOLED_FACTORY_TRANSPORT_PROPERTY

      private static final String POOLED_FACTORY_TRANSPORT_PROPERTY
      Ldap transport system property.
      See Also:
    • SINGLE_FACTORY_TRANSPORT_PROPERTY

      private static final String SINGLE_FACTORY_TRANSPORT_PROPERTY
      Ldap transport system property.
      See Also:
    • LOGGER

      private static final org.slf4j.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.
  • Constructor Details

    • TransportFactory

      private TransportFactory()
      Default constructor.
  • Method Details

    • getTransport

      public static Transport getTransport(Class<? extends ConnectionFactory> clazz)
      The TRANSPORT_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