public final class ComponentRegistry extends AbstractComponentRegistry
AbstractComponentRegistry.ComponentDEBUG_DEPENDENCIES, defaultClassLoader, state| Constructor and Description |
|---|
ComponentRegistry(String cacheName,
Configuration configuration,
AdvancedCache<?,?> cache,
GlobalComponentRegistry globalComponents,
ClassLoader defaultClassLoader)
Creates an instance of the component registry.
|
| Modifier and Type | Method and Description |
|---|---|
StreamingMarshaller |
getCacheMarshaller()
Caching shortcut for #getComponent(StreamingMarshaller.class, KnownComponentNames.CACHE_MARSHALLER);
|
String |
getCacheName() |
CommandsFactory |
getCommandsFactory()
Caching shortcut for #getLocalComponent(CommandsFactory.class);
|
<T> T |
getComponent(String componentTypeName,
String name,
boolean nameIsFQCN) |
GlobalComponentRegistry |
getGlobalComponentRegistry() |
<T> T |
getLocalComponent(Class<T> componentType) |
<T> T |
getLocalComponent(String componentTypeName,
String name,
boolean nameIsFQCN) |
protected Log |
getLog() |
ResponseGenerator |
getResponseGenerator()
Caching shortcut for #getComponent(StateTransferManager.class);
|
StateTransferManager |
getStateTransferManager()
Caching shortcut for #getComponent(StateTransferManager.class);
|
protected AbstractComponentRegistry.Component |
lookupComponent(String componentClassName,
String name,
boolean nameIsFQCN) |
protected AbstractComponentRegistry.Component |
lookupLocalComponent(String componentClassName,
String name,
boolean nameIsFQCN) |
void |
prepareWiringCache()
Invoked last after all services are wired
|
protected void |
registerComponentInternal(Object component,
String name,
boolean nameIsFQCN) |
void |
setCacheManagerNotifier(CacheManagerNotifier cacheManagerNotifier) |
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. |
addShutdownHook, clone, getComponent, getComponent, getComponent, getComponent, getConfiguration, getFactory, getOrCreateComponent, getOrCreateComponent, getRegisteredComponents, getStatus, invocationsAllowed, registerComponent, registerComponent, registerComponent, registerNonVolatileComponent, registerNonVolatileComponent, registerNullComponent, removeShutdownHook, resetVolatileComponents, rewire, wireDependenciespublic ComponentRegistry(String cacheName, Configuration configuration, AdvancedCache<?,?> cache, GlobalComponentRegistry globalComponents, ClassLoader defaultClassLoader)
configuration - configuration with which this is createdcache - cacheglobalComponents - Shared Component Registry to delegate topublic void setCacheManagerNotifier(CacheManagerNotifier cacheManagerNotifier)
protected Log getLog()
getLog in class AbstractComponentRegistrypublic final <T> T getComponent(String componentTypeName, String name, boolean nameIsFQCN)
getComponent in class AbstractComponentRegistrypublic final <T> T getLocalComponent(String componentTypeName, String name, boolean nameIsFQCN)
public final <T> T getLocalComponent(Class<T> componentType)
protected final AbstractComponentRegistry.Component lookupComponent(String componentClassName, String name, boolean nameIsFQCN)
lookupComponent in class AbstractComponentRegistryprotected final AbstractComponentRegistry.Component lookupLocalComponent(String componentClassName, String name, boolean nameIsFQCN)
public final GlobalComponentRegistry getGlobalComponentRegistry()
protected void registerComponentInternal(Object component, String name, boolean nameIsFQCN)
registerComponentInternal in class AbstractComponentRegistrypublic 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 String getCacheName()
public StreamingMarshaller getCacheMarshaller()
public StateTransferManager getStateTransferManager()
public ResponseGenerator getResponseGenerator()
public CommandsFactory getCommandsFactory()
public void prepareWiringCache()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.