use of org.killbill.billing.util.config.definition.EhCacheConfig in project killbill by killbill.
the class CacheModule method configure.
@Override
protected void configure() {
final EhCacheConfig config = new ConfigurationObjectFactory(skifeConfigSource).build(EhCacheConfig.class);
bind(EhCacheConfig.class).toInstance(config);
// EhCache specifics
bind(CacheManager.class).toProvider(EhCacheCacheManagerProvider.class).asEagerSingleton();
// Kill Bill generic cache dispatcher
bind(CacheControllerDispatcher.class).toProvider(CacheControllerDispatcherProvider.class).asEagerSingleton();
}
Aggregations