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(Configuration defaultConfiguration)
Produces the default embedded cache manager.
|
@Produces @ApplicationScoped @DefaultBean(value=EmbeddedCacheManager.class) public EmbeddedCacheManager getDefaultEmbeddedCacheManager(Configuration defaultConfiguration)
defaultConfiguration
- the default configuration produced by the DefaultEmbeddedCacheConfigurationProducer
.Copyright © 2015 JBoss, a division of Red Hat. All rights reserved.