org.infinispan.cdi
Class DefaultCacheManagerProducer
java.lang.Object
org.infinispan.cdi.DefaultCacheManagerProducer
public class DefaultCacheManagerProducer
- extends Object
The default cache manager producer.
By default the cache manager produced is an instance of DefaultCacheManager initialized with the default
configuration produced by the DefaultCacheConfigurationProducer. The default cache manager can be overridden
by creating a producer which produces the new default cache manager. The new default cache manager produced must be
qualified by OverrideDefault.
- Author:
- Kevin Pollet (C) 2011 SERLI
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultCacheManagerProducer
public DefaultCacheManagerProducer()
getDefaultCacheManager
@Produces
@Default
@ApplicationScoped
public EmbeddedCacheManager getDefaultCacheManager(@OverrideDefault
javax.enterprise.inject.Instance<EmbeddedCacheManager> providedDefaultCacheManager,
@Default
Configuration defaultConfiguration)
- Produces the default cache manager.
- Parameters:
providedDefaultCacheManager - the provided default cache manager.defaultConfiguration - the default cache configuration produced by DefaultCacheConfigurationProducer.
- Returns:
- the default cache manager used by the application.
Copyright © 2011 JBoss, a division of Red Hat. All Rights Reserved.