|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.infinispan.factories.AbstractComponentRegistry
org.infinispan.factories.ComponentRegistry
public final class ComponentRegistry
Named cache specific components
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.infinispan.factories.AbstractComponentRegistry |
---|
AbstractComponentRegistry.Component |
Field Summary |
---|
Fields inherited from class org.infinispan.factories.AbstractComponentRegistry |
---|
DEBUG_DEPENDENCIES, defaultClassLoader, state |
Constructor Summary | |
---|---|
ComponentRegistry(String cacheName,
Configuration configuration,
AdvancedCache<?,?> cache,
GlobalComponentRegistry globalComponents,
ClassLoader defaultClassLoader)
Creates an instance of the component registry. |
Method Summary | ||
---|---|---|
StreamingMarshaller |
getCacheMarshaller()
Caching shortcut for #getComponent(StreamingMarshaller.class, KnownComponentNames.CACHE_MARSHALLER); |
|
String |
getCacheName()
|
|
CommandsFactory |
getCommandsFactory()
Caching shortcut for #getLocalComponent(CommandsFactory.class); |
|
|
getComponent(String componentTypeName,
String name,
boolean nameIsFQCN)
|
|
GlobalComponentRegistry |
getGlobalComponentRegistry()
|
|
|
getLocalComponent(Class<T> componentType)
|
|
|
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. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ComponentRegistry(String cacheName, Configuration configuration, AdvancedCache<?,?> cache, GlobalComponentRegistry globalComponents, ClassLoader defaultClassLoader)
configuration
- configuration with which this is createdcache
- cacheglobalComponents
- Shared Component Registry to delegate toMethod Detail |
---|
public void setCacheManagerNotifier(CacheManagerNotifier cacheManagerNotifier)
protected Log getLog()
getLog
in class AbstractComponentRegistry
public final <T> T getComponent(String componentTypeName, String name, boolean nameIsFQCN)
getComponent
in class AbstractComponentRegistry
public 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 AbstractComponentRegistry
protected 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 AbstractComponentRegistry
public void start()
AbstractComponentRegistry
ComponentStatus.INITIALIZING
state, it will be initialized first.
start
in interface 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 Lifecycle
stop
in class AbstractComponentRegistry
public String getCacheName()
public StreamingMarshaller getCacheMarshaller()
public StateTransferManager getStateTransferManager()
public ResponseGenerator getResponseGenerator()
public CommandsFactory getCommandsFactory()
public void prepareWiringCache()
|
--> | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |