@ThreadSafe public class GlobalComponentRegistry extends AbstractComponentRegistry
AbstractComponentRegistry.Component
Modifier and Type | Field and Description |
---|---|
protected ClassLoader |
defaultClassLoader |
DEBUG_DEPENDENCIES, 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() |
ComponentMetadataRepo |
getComponentMetadataRepo() |
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, createComponentFactoryInternal, getComponent, getComponent, getComponent, getComponent, getComponent, getConfiguration, getFactory, getOrCreateComponent, getOrCreateComponent, getOrCreateComponent, getRegisteredComponents, getStatus, invocationsAllowed, lookupComponent, registerComponent, registerComponent, registerComponent, registerComponentInternal, registerDefaultClassLoader, registerNonVolatileComponent, registerNonVolatileComponent, registerNullComponent, resetVolatileComponents, rewire, throwStackAwareConfigurationException, wireDependencies
protected final ClassLoader defaultClassLoader
public GlobalComponentRegistry(GlobalConfiguration configuration, EmbeddedCacheManager cacheManager, Set<String> createdCaches)
configuration
- configuration with which this is createdprotected Log getLog()
getLog
in class AbstractComponentRegistry
public ComponentMetadataRepo getComponentMetadataRepo()
getComponentMetadataRepo
in class AbstractComponentRegistry
protected void removeShutdownHook()
removeShutdownHook
in class AbstractComponentRegistry
protected void addShutdownHook()
addShutdownHook
in class AbstractComponentRegistry
public 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()
AbstractComponentRegistry
ComponentStatus.INITIALIZING
state, it will be initialized first.start
in interface Lifecycle
start
in class AbstractComponentRegistry
public void stop()
AbstractComponentRegistry
ComponentStatus.TERMINATED
once it
is done. If the cache is not in the ComponentStatus.RUNNING
state, this is a
no-op.stop
in interface Lifecycle
stop
in class AbstractComponentRegistry
public final GlobalConfiguration getGlobalConfiguration()
public boolean removeCache(String cacheName)
public ModuleProperties getModuleProperties()
Copyright © 2017 JBoss, a division of Red Hat. All Rights Reserved.