@ThreadSafe public class GlobalComponentRegistry extends AbstractComponentRegistry
Modifier and Type | Class and Description |
---|---|
class |
GlobalComponentRegistry.ModuleInitializer
Module initialization happens in
ModuleLifecycle.cacheManagerStarting(GlobalComponentRegistry, GlobalConfiguration) . |
Modifier and Type | Field and Description |
---|---|
protected ClassLoader |
classLoader |
state
Constructor and Description |
---|
GlobalComponentRegistry(GlobalConfiguration configuration,
EmbeddedCacheManager cacheManager,
Set<String> createdCaches,
ModuleRepository moduleRepository,
ConfigurationManager configurationManager)
Creates an instance of the component registry.
|
getComponent, getComponent, getComponent, getComponent, getComponent, getOptionalComponent, getOrCreateComponent, getOrCreateComponent, getOrCreateComponent, getStatus, registerComponent, registerComponent, registerComponent, registerComponentInternal, registerDefaultClassLoader, registerNonVolatileComponent, start, stop, wireDependencies
protected final ClassLoader classLoader
public GlobalComponentRegistry(GlobalConfiguration configuration, EmbeddedCacheManager cacheManager, Set<String> createdCaches, ModuleRepository moduleRepository, ConfigurationManager configurationManager)
configuration
- configuration with which this is createdconfigurationManager
- protected ClassLoader getClassLoader()
getClassLoader
in class AbstractComponentRegistry
protected Log getLog()
getLog
in class AbstractComponentRegistry
protected void removeShutdownHook()
removeShutdownHook
in class AbstractComponentRegistry
public TimeService getTimeService()
getTimeService
in class AbstractComponentRegistry
protected void addShutdownHook()
addShutdownHook
in class AbstractComponentRegistry
public final ComponentRegistry getNamedComponentRegistry(String name)
public final ComponentRegistry getNamedComponentRegistry(ByteString name)
public final void registerNamedComponentRegistry(ComponentRegistry componentRegistry, String name)
public final void unregisterNamedComponentRegistry(String name)
public final void rewireNamedRegistries()
public void rewire()
AbstractComponentRegistry
rewire
in class AbstractComponentRegistry
protected void preStart()
preStart
in class AbstractComponentRegistry
protected void postStart()
postStart
in class AbstractComponentRegistry
protected void preStop()
preStop
in class AbstractComponentRegistry
protected void postStop()
postStop
in class AbstractComponentRegistry
public void notifyCacheStarted(String cacheName)
public final GlobalConfiguration getGlobalConfiguration()
public boolean removeCache(String cacheName)
@Deprecated public ModuleProperties getModuleProperties()
public EmbeddedCacheManager getCacheManager()
public ClusterTopologyManager getClusterTopologyManager()
public LocalTopologyManager getLocalTopologyManager()
Copyright © 2021 JBoss by Red Hat. All rights reserved.