Package org.infinispan.factories
Class GlobalComponentRegistry
java.lang.Object
org.infinispan.factories.AbstractComponentRegistry
org.infinispan.factories.GlobalComponentRegistry
- All Implemented Interfaces:
Lifecycle
A global component registry where shared components are stored.
- Since:
- 4.0
- Author:
- Manik Surtani
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
Module initialization happens inModuleLifecycle.cacheManagerStarting(GlobalComponentRegistry, GlobalConfiguration)
. -
Field Summary
Fields inherited from class org.infinispan.factories.AbstractComponentRegistry
state
-
Constructor Summary
ConstructorDescriptionGlobalComponentRegistry
(GlobalConfiguration configuration, EmbeddedCacheManager cacheManager, Set<String> createdCaches, org.infinispan.manager.ModuleRepository moduleRepository, ConfigurationManager configurationManager) Creates an instance of the component registry. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected CompletionStage<Void>
protected ClassLoader
final GlobalConfiguration
protected org.infinispan.util.logging.Log
getLog()
<T extends ModuleLifecycle>
TgetModuleLifecycle
(Class<T> type) Deprecated, for removal: This API element is subject to removal in a future version.protected String
getName()
final Collection<ComponentRegistry>
final ComponentRegistry
final ComponentRegistry
org.infinispan.xsite.XSiteCacheMapper
void
notifyCacheStarted
(String cacheName) void
protected void
postStop()
protected void
preStart()
protected void
preStop()
final 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
void
rewire()
Rewires components.final void
final void
Methods inherited from class org.infinispan.factories.AbstractComponentRegistry
getComponent, getComponent, getComponent, getComponent, getComponent, getOptionalComponent, getOrCreateComponent, getOrCreateComponent, getOrCreateComponent, getStatus, registerComponent, registerComponent, registerComponent, registerComponentInternal, registerDefaultClassLoader, registerNonVolatileComponent, start, stop, wireDependencies, wireDependencies
-
Field Details
-
classLoader
-
-
Constructor Details
-
GlobalComponentRegistry
public GlobalComponentRegistry(GlobalConfiguration configuration, EmbeddedCacheManager cacheManager, Set<String> createdCaches, org.infinispan.manager.ModuleRepository moduleRepository, ConfigurationManager configurationManager) Creates an instance of the component registry. The configuration passed in is automatically registered.- Parameters:
configuration
- configuration with which this is createdconfigurationManager
-
-
-
Method Details
-
getClassLoader
- Specified by:
getClassLoader
in classAbstractComponentRegistry
-
getLog
protected org.infinispan.util.logging.Log getLog()- Specified by:
getLog
in classAbstractComponentRegistry
-
removeShutdownHook
protected void removeShutdownHook()- Overrides:
removeShutdownHook
in classAbstractComponentRegistry
-
getTimeService
- Specified by:
getTimeService
in classAbstractComponentRegistry
-
getModuleLifecycle
-
addShutdownHook
protected void addShutdownHook()- Overrides:
addShutdownHook
in classAbstractComponentRegistry
-
getNamedComponentRegistries
-
getNamedComponentRegistry
-
getNamedComponentRegistry
-
registerNamedComponentRegistry
-
unregisterNamedComponentRegistry
-
rewireNamedRegistries
public final void rewireNamedRegistries() -
rewire
public void rewire()Description copied from class:AbstractComponentRegistry
Rewires components. Used to rewire components in the CR if a cache has been stopped (moved to state TERMINATED), which would (almost) empty the registry of components. Rewiring will re-inject all dependencies so that the cache can be started again.- Overrides:
rewire
in classAbstractComponentRegistry
-
getName
- Specified by:
getName
in classAbstractComponentRegistry
-
preStart
protected void preStart()- Specified by:
preStart
in classAbstractComponentRegistry
-
postStart
public void postStart()- Specified by:
postStart
in classAbstractComponentRegistry
-
delayStart
- Specified by:
delayStart
in classAbstractComponentRegistry
-
preStop
protected void preStop()- Specified by:
preStop
in classAbstractComponentRegistry
-
postStop
protected void postStop()- Specified by:
postStop
in classAbstractComponentRegistry
-
notifyCacheStarted
-
getGlobalConfiguration
-
removeCache
Removes a cache with the given name, returning true if the cache was removed. -
getModuleProperties
Deprecated, for removal: This API element is subject to removal in a future version. -
getCacheManager
-
getClusterTopologyManager
-
getLocalTopologyManager
-
getXSiteCacheMapper
public org.infinispan.xsite.XSiteCacheMapper getXSiteCacheMapper()
-