Package org.infinispan.factories
Class InternalCacheFactory<K,V>
- java.lang.Object
-
- org.infinispan.factories.AbstractComponentFactory
-
- org.infinispan.factories.AbstractNamedCacheComponentFactory
-
- org.infinispan.factories.InternalCacheFactory<K,V>
-
public class InternalCacheFactory<K,V> extends AbstractNamedCacheComponentFactory
An internal factory for constructing Caches. Used by theDefaultCacheManager
, this is not intended as public API. This is a special instance of aAbstractComponentFactory
which contains bootstrap information for theComponentRegistry
.- Since:
- 4.0
- Author:
- Manik Surtani (manik@jboss.org)
-
-
Field Summary
-
Fields inherited from class org.infinispan.factories.AbstractNamedCacheComponentFactory
componentRegistry, configuration
-
Fields inherited from class org.infinispan.factories.AbstractComponentFactory
globalComponentRegistry, globalConfiguration
-
-
Constructor Summary
Constructors Constructor Description InternalCacheFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
construct(Class<T> componentType)
Constructs a component.Cache<K,V>
createCache(Configuration configuration, GlobalComponentRegistry globalComponentRegistry, String cacheName)
This implementation clones the configuration passed in before using it.-
Methods inherited from class org.infinispan.factories.AbstractComponentFactory
assertTypeConstructable
-
-
-
-
Method Detail
-
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 useglobalComponentRegistry
- global component registry to attach the cache tocacheName
- name of the cache- Returns:
- a cache
- Throws:
org.infinispan.commons.CacheConfigurationException
- if there are problems with the cfg
-
construct
public <T> T construct(Class<T> componentType)
Description copied from class:AbstractComponentFactory
Constructs a component.- Specified by:
construct
in classAbstractComponentFactory
- Parameters:
componentType
- type of component- Returns:
- a component
-
-