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
Nested ClassesModifier and TypeClassDescriptionclassModule initialization happens inModuleLifecycle.cacheManagerStarting(GlobalComponentRegistry, GlobalConfiguration). -
Field Summary
FieldsFields inherited from class org.infinispan.factories.AbstractComponentRegistry
state -
Constructor Summary
ConstructorsConstructorDescriptionGlobalComponentRegistry(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 voidprotected CompletionStage<Void>protected ClassLoaderfinal GlobalConfigurationprotected org.infinispan.util.logging.LoggetLog()<T extends ModuleLifecycle>
TgetModuleLifecycle(Class<T> type) Deprecated, for removal: This API element is subject to removal in a future version.protected StringgetName()final Collection<ComponentRegistry>final ComponentRegistryfinal ComponentRegistryorg.infinispan.xsite.XSiteCacheMapperbooleanvoidnotifyCacheStarted(String cacheName) voidprotected voidpostStop()protected voidpreStart()protected voidpreStop()final voidregisterNamedComponentRegistry(ComponentRegistry componentRegistry, String name) booleanremoveCache(String cacheName) Removes a cache with the given name, returning true if the cache was removed.protected voidvoidrewire()Rewires components.final voidfinal voidMethods 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:
getClassLoaderin classAbstractComponentRegistry
-
getLog
protected org.infinispan.util.logging.Log getLog()- Specified by:
getLogin classAbstractComponentRegistry
-
removeShutdownHook
protected void removeShutdownHook()- Overrides:
removeShutdownHookin classAbstractComponentRegistry
-
getTimeService
- Specified by:
getTimeServicein classAbstractComponentRegistry
-
getModuleLifecycle
-
addShutdownHook
protected void addShutdownHook()- Overrides:
addShutdownHookin classAbstractComponentRegistry
-
getNamedComponentRegistries
-
getNamedComponentRegistry
-
getNamedComponentRegistry
-
registerNamedComponentRegistry
-
unregisterNamedComponentRegistry
-
rewireNamedRegistries
public final void rewireNamedRegistries() -
rewire
public void rewire()Description copied from class:AbstractComponentRegistryRewires 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:
rewirein classAbstractComponentRegistry
-
getName
- Specified by:
getNamein classAbstractComponentRegistry
-
preStart
protected void preStart()- Specified by:
preStartin classAbstractComponentRegistry
-
postStart
public void postStart()- Specified by:
postStartin classAbstractComponentRegistry
-
delayStart
- Specified by:
delayStartin classAbstractComponentRegistry
-
preStop
protected void preStop()- Specified by:
preStopin classAbstractComponentRegistry
-
postStop
protected void postStop()- Specified by:
postStopin 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
-
isLocalTopologyManagerRunning
public boolean isLocalTopologyManagerRunning() -
getXSiteCacheMapper
public org.infinispan.xsite.XSiteCacheMapper getXSiteCacheMapper()
-