org.infinispan.cdi
Class DefaultEmbeddedCacheManagerProducer

java.lang.Object
  extended by org.infinispan.cdi.DefaultEmbeddedCacheManagerProducer

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.

Author:
Kevin Pollet (C) 2011 SERLI

Constructor Summary
DefaultEmbeddedCacheManagerProducer()
           
 
Method Summary
 EmbeddedCacheManager getDefaultEmbeddedCacheManager(javax.enterprise.inject.Instance<EmbeddedCacheManager> providedDefaultEmbeddedCacheManager, Configuration defaultConfiguration)
          Produces the default embedded cache manager.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultEmbeddedCacheManagerProducer

public DefaultEmbeddedCacheManagerProducer()
Method Detail

getDefaultEmbeddedCacheManager

@Produces
@ApplicationScoped
@DefaultBean(value=EmbeddedCacheManager.class)
public EmbeddedCacheManager getDefaultEmbeddedCacheManager(@OverrideDefault
                                                                                                                            javax.enterprise.inject.Instance<EmbeddedCacheManager> providedDefaultEmbeddedCacheManager,
                                                                                                                            Configuration defaultConfiguration)
Produces the default embedded cache manager.

Parameters:
providedDefaultEmbeddedCacheManager - the provided default embedded cache manager.
defaultConfiguration - the default configuration produced by the DefaultEmbeddedCacheConfigurationProducer.
Returns:
the default embedded cache manager used by the application.

-->

Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.