Class TransportFactory


  • public final class TransportFactory
    extends Object
    Factory for creating connection transports.
    • 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.
    • Constructor Detail

      • TransportFactory

        private TransportFactory()
        Default constructor.
    • Method Detail

      • 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