Class InternalCacheFactory<K,V>

java.lang.Object
org.infinispan.factories.InternalCacheFactory<K,V>

public class InternalCacheFactory<K,V> extends Object
An internal factory for constructing Caches. Used by the DefaultCacheManager, this is not intended as public API.

This is a special instance of a AbstractComponentFactory which contains bootstrap information for the ComponentRegistry.

Since:
4.0
Author:
Manik Surtani (manik@jboss.org)
  • Constructor Details

    • InternalCacheFactory

      public InternalCacheFactory()
  • Method Details

    • createCache

      public Cache<K,V> createCache(Configuration configuration, GlobalComponentRegistry globalComponentRegistry, String cacheName) throws org.infinispan.commons.CacheConfigurationException
      This implementation clones the configuration passed in before using it.
      Parameters:
      configuration - to use
      globalComponentRegistry - global component registry to attach the cache to
      cacheName - name of the cache
      Returns:
      a cache
      Throws:
      org.infinispan.commons.CacheConfigurationException - if there are problems with the cfg