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, configurationglobalComponentRegistry, 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.
|
assertTypeConstructablepublic 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 cfgCacheConfigurationExceptionprotected AdvancedCache<K,V> createAndWire(Configuration configuration, GlobalComponentRegistry globalComponentRegistry, String cacheName) throws Exception
Exceptionpublic <T> T construct(Class<T> componentType)
AbstractComponentFactoryconstruct in class AbstractComponentFactorycomponentType - type of componentCopyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.