public void configure(Binder binder) {
binder.bind(JdbcEventLogger.class).to(CommonsJdbcEventLogger.class);
binder.bind(DataDomain.class).toInstance(domain);
binder.bind(EventManager.class).toInstance(eventManager);
binder.bind(QueryCache.class).toInstance(new MapQueryCache(5));
binder
.bind(
Key.get(
QueryCache.class,
BaseContext.QUERY_CACHE_INJECTION_KEY))
.toInstance(new MapQueryCache(5));
}
};
Injector injector = DIBootstrap.createInjector(testModule);