core/cas-server-core-configuration/src/main/java/org/apereo/cas/configuration/support/Beans.java
/**
     * New connection factory connection factory.
     *
     * @param l the l
     * @return the connection factory
     */
New connection factory connection factory.
@param l the l
@return the connection factory
New connection factory connection factory . @param l the l @return the connection factory
public static DefaultConnectionFactory newConnectionFactory(final AbstractLdapProperties l) {
        final ConnectionConfig cc = newConnectionConfig(l);
        final DefaultConnectionFactory bindCf = new DefaultConnectionFactory(cc);
        if (l.getProviderClass() != null) {
            try {
                final Class clazz = ClassUtils.getClass(l.getProviderClass());
                bindCf.setProvider(Provider.class.cast(clazz.newInstance()));
            } catch (final Exception e) {
                LOGGER.error(e.getMessage(), e);
            }
        }
        return bindCf;
    }
public static DefaultConnectionFactory newConnectionFactory ( final AbstractLdapProperties l ) { final ConnectionConfig cc = newConnectionConfig ( l ) ; final DefaultConnectionFactory bindCf = new DefaultConnectionFactory ( cc ) ; if ( l . getProviderClass ( ) != null ) { try { final Class clazz = ClassUtils . getClass ( l . getProviderClass ( ) ) ; bindCf . setProvider ( Provider . class . cast ( clazz . newInstance ( ) ) ) ; } catch ( final Exception e ) { LOGGER . error ( e . getMessage ( ) , e ) ; } } return bindCf ; }
New connection factory connection factory.
New connection factory connection factory .