@ThreadSafe public class GlobalComponentRegistry extends AbstractComponentRegistry
AbstractComponentRegistry.Component| Modifier and Type | Field and Description |
|---|---|
protected WeakReference<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() |
protected ClassLoader |
getClassLoader() |
ComponentMetadataRepo |
getComponentMetadataRepo() |
GlobalConfiguration |
getGlobalConfiguration() |
protected Log |
getLog() |
Map<Byte,ModuleCommandInitializer> |
getModuleCommandInitializers() |
ModuleProperties |
getModuleProperties() |
ComponentRegistry |
getNamedComponentRegistry(String name) |
TimeService |
getTimeService() |
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, wireDependenciesprotected final WeakReference<ClassLoader> defaultClassLoader
public GlobalComponentRegistry(GlobalConfiguration configuration, EmbeddedCacheManager cacheManager, Set<String> createdCaches)
configuration - configuration with which this is createdprotected ClassLoader getClassLoader()
getClassLoader in class AbstractComponentRegistryprotected Log getLog()
getLog in class AbstractComponentRegistrypublic ComponentMetadataRepo getComponentMetadataRepo()
getComponentMetadataRepo in class AbstractComponentRegistryprotected void removeShutdownHook()
removeShutdownHook in class AbstractComponentRegistrypublic TimeService getTimeService()
getTimeService 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 © 2013 JBoss, a division of Red Hat. All rights reserved.