Implementa classe ConnectionFactory.