@Configuration @Import({RestaurantsQuerysideRedisConfiguration.class}) @ComponentScan @EnableEventHandlers public class RestaurantsViewBackendConfiguration { @Bean public RestaurantViewEventSubscriber restaurantQueryWorkflow(RestaurantQuerySideRedisService restaurantQuerySideRedisService) { return new RestaurantViewEventSubscriber(restaurantQuerySideRedisService); } }
@Configuration @EntityScan("net.chrisrichardson.eventstore.examples.todolist") @EnableJpaRepositories("net.chrisrichardson.eventstore.examples.todolist") @EnableEventHandlers public class TodoViewBackendConfiguration { @Bean public TodoViewEventSubscriber todoViewEventSubscriber(TodoUpdateServiceImpl queryService) { return new TodoViewEventSubscriber(queryService); } @Bean public TodoUpdateServiceImpl queryService(TodoRepository repository) { return new TodoUpdateServiceImpl(repository); } @Bean public HttpMessageConverters customConverters() { HttpMessageConverter<?> additional = new MappingJackson2HttpMessageConverter(); return new HttpMessageConverters(additional); } }
@Configuration @EntityScan("net.chrisrichardson.eventstore.examples.todolist") @EnableJpaRepositories("net.chrisrichardson.eventstore.examples.todolist") @EnableEventHandlers public class TodoBackendConfiguration {
@EntityScan("net.chrisrichardson.eventstore.examples.todolist") @EnableJpaRepositories("net.chrisrichardson.eventstore.examples.todolist") @EnableEventHandlers public class TodoBackendConfiguration {