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.
|
void |
setDefaultClassLoader(ClassLoader loader)
Allows users to specify a default class loader to use for both the construction and running of the cache.
|
assertTypeConstructablepublic Cache<K,V> createCache(Configuration configuration, GlobalComponentRegistry globalComponentRegistry, String cacheName) throws ConfigurationException
configuration - to useglobalComponentRegistry - global component registry to attach the cache tocacheName - name of the cacheConfigurationException - if there are problems with the cfgprotected AdvancedCache<K,V> createAndWire(Configuration configuration, GlobalComponentRegistry globalComponentRegistry, String cacheName) throws Exception
Exceptionpublic void setDefaultClassLoader(ClassLoader loader)
loader - class loader to use as a default.public <T> T construct(Class<T> componentType)
AbstractComponentFactoryconstruct in class AbstractComponentFactorycomponentType - type of componentCopyright © 2012 JBoss by Red Hat. All Rights Reserved.