public class DefaultEmbeddedCacheManagerProducer extends Object
The default EmbeddedCacheManager
producer.
The cache manager produced by default is an instance of DefaultCacheManager
initialized with the default
configuration produced by the DefaultEmbeddedCacheConfigurationProducer
. The default cache manager can be
overridden by creating a producer which produces the new default cache manager. The cache manager produced must have
the scope ApplicationScoped
and the Default qualifier.
Constructor and Description |
---|
DefaultEmbeddedCacheManagerProducer() |
Modifier and Type | Method and Description |
---|---|
EmbeddedCacheManager |
getDefaultEmbeddedCacheManager(javax.enterprise.inject.Instance<EmbeddedCacheManager> providedDefaultEmbeddedCacheManager,
Configuration defaultConfiguration)
Produces the default embedded cache manager.
|
@Produces @ApplicationScoped @DefaultBean(value=EmbeddedCacheManager.class) public EmbeddedCacheManager getDefaultEmbeddedCacheManager(@OverrideDefault javax.enterprise.inject.Instance<EmbeddedCacheManager> providedDefaultEmbeddedCacheManager, Configuration defaultConfiguration)
providedDefaultEmbeddedCacheManager
- the provided default embedded cache manager.defaultConfiguration
- the default configuration produced by the DefaultEmbeddedCacheConfigurationProducer
.Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.