/** * Creates a new instance of LdapConnectionTemplate. * * @param connectionPool The pool to obtain connections from. */ public LdapConnectionTemplate( LdapConnectionPool connectionPool ) { if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_04174_CREATING_NEW_CONNECTION_TEMPLATE ) ); } this.connectionPool = connectionPool; this.passwordPolicyRequestControl = new PasswordPolicyDecorator( connectionPool.getLdapApiService() ); this.passwordPolicyResponder = new PasswordPolicyResponderImpl( connectionPool.getLdapApiService() ); this.modelFactory = new ModelFactoryImpl(); }
/** * Creates a new instance of LdapConnectionTemplate. * * @param connectionPool The pool to obtain connections from. */ public LdapConnectionTemplate( LdapConnectionPool connectionPool ) { if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_04174_CREATING_NEW_CONNECTION_TEMPLATE ) ); } this.connectionPool = connectionPool; this.passwordPolicyRequestControl = new PasswordPolicyDecorator( connectionPool.getLdapApiService() ); this.passwordPolicyResponder = new PasswordPolicyResponderImpl( connectionPool.getLdapApiService() ); this.modelFactory = new ModelFactoryImpl(); }
/** * Creates a new instance of LdapConnectionTemplate. * * @param connectionPool The pool to obtain connections from. */ public LdapConnectionTemplate( LdapConnectionPool connectionPool ) { if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_04174_CREATING_NEW_CONNECTION_TEMPLATE ) ); } this.connectionPool = connectionPool; this.passwordPolicyRequestControl = new PasswordPolicyDecorator( connectionPool.getLdapApiService() ); this.passwordPolicyResponder = new PasswordPolicyResponderImpl( connectionPool.getLdapApiService() ); this.modelFactory = new ModelFactoryImpl(); }