public class InternalCacheFactory<K,V> extends AbstractNamedCacheComponentFactory
DefaultCacheManager
, this is not intended as public
API.
This is a special instance of a AbstractComponentFactory
which contains bootstrap information for the ComponentRegistry
.
componentRegistry, configuration
globalComponentRegistry, globalConfiguration
Constructor and Description |
---|
InternalCacheFactory() |
Modifier and Type | Method and Description |
---|---|
<T> T |
construct(Class<T> componentType)
Constructs a component.
|
protected AdvancedCache<K,V> |
createAndWire(Configuration configuration,
GlobalComponentRegistry globalComponentRegistry,
String cacheName) |
Cache<K,V> |
createCache(Configuration configuration,
GlobalComponentRegistry globalComponentRegistry,
String cacheName)
This implementation clones the configuration passed in before using it.
|
assertTypeConstructable
public Cache<K,V> createCache(Configuration configuration, GlobalComponentRegistry globalComponentRegistry, String cacheName) throws CacheConfigurationException
configuration
- to useglobalComponentRegistry
- global component registry to attach the cache tocacheName
- name of the cacheConfigurationException
- if there are problems with the cfgCacheConfigurationException
protected AdvancedCache<K,V> createAndWire(Configuration configuration, GlobalComponentRegistry globalComponentRegistry, String cacheName) throws Exception
Exception
public <T> T construct(Class<T> componentType)
AbstractComponentFactory
construct
in class AbstractComponentFactory
componentType
- type of componentCopyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.