Search in sources :

Example 1 with CacheManagersRegistry

use of org.opendaylight.infrautils.caches.baseimpl.CacheManagersRegistry in project infrautils by opendaylight.

the class CacheModule method configure.

@Override
protected void configure() {
    bind(CacheProvider.class).to(providerClass);
    bind(CacheProvider.class).annotatedWith(OsgiService.class).to(providerClass);
    CacheManagersRegistry monitor = new CacheManagersRegistryImpl();
    bind(CacheManagersRegistry.class).toInstance(monitor);
    bind(CacheManagers.class).toInstance(monitor);
}
Also used : CacheManagersRegistryImpl(org.opendaylight.infrautils.caches.baseimpl.internal.CacheManagersRegistryImpl) StandardCacheProvider(org.opendaylight.infrautils.caches.standard.StandardCacheProvider) CacheProvider(org.opendaylight.infrautils.caches.CacheProvider) CacheManagers(org.opendaylight.infrautils.caches.CacheManagers) CacheManagersRegistry(org.opendaylight.infrautils.caches.baseimpl.CacheManagersRegistry) OsgiService(org.ops4j.pax.cdi.api.OsgiService)

Aggregations

CacheManagers (org.opendaylight.infrautils.caches.CacheManagers)1 CacheProvider (org.opendaylight.infrautils.caches.CacheProvider)1 CacheManagersRegistry (org.opendaylight.infrautils.caches.baseimpl.CacheManagersRegistry)1 CacheManagersRegistryImpl (org.opendaylight.infrautils.caches.baseimpl.internal.CacheManagersRegistryImpl)1 StandardCacheProvider (org.opendaylight.infrautils.caches.standard.StandardCacheProvider)1 OsgiService (org.ops4j.pax.cdi.api.OsgiService)1