Skip to content

Instantly share code, notes, and snippets.

@cbeams
Created August 31, 2013 21:14
Show Gist options
  • Select an option

  • Save cbeams/6400670 to your computer and use it in GitHub Desktop.

Select an option

Save cbeams/6400670 to your computer and use it in GitHub Desktop.
@Configuration
public class CoreConfig {
@Bean
public OrderService createService(OrdersRepository repo) {
return new OrderEventHandler(repo);
}
@Bean
public OrdersRepository createRepo() {
return new OrdersMemoryRepository(new HashMap<UUID, Order>());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment