public class GlobalComponentRegistry extends AbstractComponentRegistry
AbstractComponentRegistry.ComponentDEBUG_DEPENDENCIES, defaultClassLoader, state| Constructor and Description |
|---|
GlobalComponentRegistry(GlobalConfiguration configuration,
EmbeddedCacheManager cacheManager,
Set<String> createdCaches)
Creates an instance of the component registry.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addShutdownHook() |
GlobalConfiguration |
getGlobalConfiguration() |
protected Log |
getLog() |
Map<Byte,ModuleCommandInitializer> |
getModuleCommandInitializers() |
ModuleProperties |
getModuleProperties() |
ComponentRegistry |
getNamedComponentRegistry(String name) |
void |
registerNamedComponentRegistry(ComponentRegistry componentRegistry,
String name) |
boolean |
removeCache(String cacheName)
Removes a cache with the given name, returning true if the cache was removed.
|
protected void |
removeShutdownHook() |
void |
rewireNamedRegistries() |
void |
start()
This starts the components in the cache, connecting to channels, starting service threads, etc.
|
void |
stop()
Stops the cache and sets the cache status to
ComponentStatus.TERMINATED once it
is done. |
void |
unregisterNamedComponentRegistry(String name) |
clone, getComponent, getComponent, getComponent, getComponent, getComponent, getConfiguration, getFactory, getOrCreateComponent, getOrCreateComponent, getRegisteredComponents, getStatus, invocationsAllowed, lookupComponent, registerComponent, registerComponent, registerComponent, registerComponentInternal, registerNonVolatileComponent, registerNonVolatileComponent, registerNullComponent, resetVolatileComponents, rewire, wireDependenciespublic GlobalComponentRegistry(GlobalConfiguration configuration, EmbeddedCacheManager cacheManager, Set<String> createdCaches)
configuration - configuration with which this is createdprotected Log getLog()
getLog in class AbstractComponentRegistryprotected void removeShutdownHook()
removeShutdownHook in class AbstractComponentRegistryprotected void addShutdownHook()
addShutdownHook in class AbstractComponentRegistrypublic final ComponentRegistry getNamedComponentRegistry(String name)
public final void registerNamedComponentRegistry(ComponentRegistry componentRegistry, String name)
public final void unregisterNamedComponentRegistry(String name)
public final void rewireNamedRegistries()
public Map<Byte,ModuleCommandInitializer> getModuleCommandInitializers()
public void start()
AbstractComponentRegistryComponentStatus.INITIALIZING state, it will be initialized first.start in interface Lifecyclestart in class AbstractComponentRegistrypublic void stop()
AbstractComponentRegistryComponentStatus.TERMINATED once it
is done. If the cache is not in the ComponentStatus.RUNNING state, this is a
no-op.stop in interface Lifecyclestop in class AbstractComponentRegistrypublic final GlobalConfiguration getGlobalConfiguration()
public boolean removeCache(String cacheName)
public ModuleProperties getModuleProperties()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.