package io.trygvis.spring; import io.trygvis.async.AsyncService; import io.trygvis.queue.QueueService; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.jdbc.core.JdbcTemplate; @Configuration public class DefaultConfig { @Bean public AsyncService asyncService(JdbcTemplate jdbcTemplate) { return new SpringJdbcAsyncService(jdbcTemplate); } @Bean public QueueService queueService(JdbcTemplate jdbcTemplate) { return new SpringQueueService(jdbcTemplate); } }