@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.
|
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 WeakReference<ClassLoader> defaultClassLoader
public GlobalComponentRegistry(GlobalConfiguration configuration, EmbeddedCacheManager cacheManager, Set<String> createdCaches)
configuration
- configuration with which this is createdprotected ClassLoader getClassLoader()
getClassLoader
in class AbstractComponentRegistry
protected Log getLog()
getLog
in class AbstractComponentRegistry
public ComponentMetadataRepo getComponentMetadataRepo()
getComponentMetadataRepo
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 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 org.infinispan.commons.api.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 org.infinispan.commons.api.Lifecycle
stop
in class AbstractComponentRegistry
public void notifyCacheStarted(String cacheName)
public final GlobalConfiguration getGlobalConfiguration()
public boolean removeCache(String cacheName)
public ModuleProperties getModuleProperties()
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.