use of uk.gov.justice.services.jdbc.persistence.JdbcDataSourceProvider in project microservice_framework by CJSCommonPlatform.
the class EventRepositoryFactory method getEventJdbcRepository.
public static EventJdbcRepository getEventJdbcRepository(final DataSource dataSource) throws NamingException {
final EventJdbcRepository eventJdbcRepository = new EventJdbcRepository();
eventJdbcRepository.dataSource = dataSource;
eventJdbcRepository.jdbcDataSourceProvider = new JdbcDataSourceProvider();
eventJdbcRepository.logger = getLogger(EventJdbcRepository.class);
eventJdbcRepository.jdbcRepositoryHelper = new JdbcRepositoryHelper();
eventJdbcRepository.eventInsertionStrategy = new AnsiSQLEventLogInsertionStrategy();
return eventJdbcRepository;
}
Aggregations