org.infinispan.cdi
Class DefaultCacheManagerProducer

java.lang.Object
  extended by 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

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

Constructor Detail

DefaultCacheManagerProducer

public DefaultCacheManagerProducer()
Method Detail

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.