org.infinispan.factories
Class GlobalComponentRegistry
java.lang.Object
org.infinispan.factories.AbstractComponentRegistry
org.infinispan.factories.GlobalComponentRegistry
- All Implemented Interfaces:
- Cloneable, Lifecycle
public class GlobalComponentRegistry
- extends AbstractComponentRegistry
A global component registry where shared components are stored.
- Since:
- 4.0
- Author:
- Manik Surtani
Methods inherited from class org.infinispan.factories.AbstractComponentRegistry |
clone, getComponent, getComponent, getComponent, getComponent, getComponent, getConfiguration, getFactory, getOrCreateComponent, getOrCreateComponent, getRegisteredComponents, getStatus, invocationsAllowed, lookupComponent, registerComponent, registerComponent, registerComponent, registerComponentInternal, registerNonVolatileComponent, registerNonVolatileComponent, registerNullComponent, resetVolatileComponents, rewire, wireDependencies |
GlobalComponentRegistry
public GlobalComponentRegistry(GlobalConfiguration configuration,
EmbeddedCacheManager cacheManager,
Set<String> createdCaches)
- Creates an instance of the component registry. The configuration passed in is automatically registered.
- Parameters:
configuration
- configuration with which this is created
getLog
protected Log getLog()
- Specified by:
getLog
in class AbstractComponentRegistry
removeShutdownHook
protected void removeShutdownHook()
- Overrides:
removeShutdownHook
in class AbstractComponentRegistry
addShutdownHook
protected void addShutdownHook()
- Overrides:
addShutdownHook
in class AbstractComponentRegistry
getNamedComponentRegistry
public final ComponentRegistry getNamedComponentRegistry(String name)
registerNamedComponentRegistry
public final void registerNamedComponentRegistry(ComponentRegistry componentRegistry,
String name)
unregisterNamedComponentRegistry
public final void unregisterNamedComponentRegistry(String name)
rewireNamedRegistries
public final void rewireNamedRegistries()
getModuleCommandInitializers
public Map<Byte,ModuleCommandInitializer> getModuleCommandInitializers()
start
public void start()
- Description copied from class:
AbstractComponentRegistry
- This starts the components in the cache, connecting to channels, starting service threads, etc. If the cache is
not in the
ComponentStatus.INITIALIZING
state, it will be initialized first.
- Specified by:
start
in interface Lifecycle
- Overrides:
start
in class AbstractComponentRegistry
stop
public void stop()
- Description copied from class:
AbstractComponentRegistry
- Stops the cache and sets the cache status to
ComponentStatus.TERMINATED
once it
is done. If the cache is not in the ComponentStatus.RUNNING
state, this is a
no-op.
- Specified by:
stop
in interface Lifecycle
- Overrides:
stop
in class AbstractComponentRegistry
getGlobalConfiguration
public final GlobalConfiguration getGlobalConfiguration()
removeCache
public boolean removeCache(String cacheName)
- Removes a cache with the given name, returning true if the cache was removed.
getModuleProperties
public ModuleProperties getModuleProperties()
Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.