io.sarl.sre.janus.services.context
Class MemoryBasedContextService
All Superinterfaces:
ContextService, org.arakhne.afc.services.IService
All Known Subclasses:
HazelcastContextService
class MemoryBasedContextService
extends AbstractInjectionBasedContextService
A service managing the root context and enabling the creation of contexts by injection into the local memory. The context repository is not shared among different instances of the SRE kernel.

This service is thread-safe.
Maven Group Identifier:
io.sarl.sre.janus
Maven Artifact Identifier:
janus.kernel
Property Summary
Modifier and type Property and description
java.util.Collection<E> allContexts
protected java.util.Map<K,V> contextInternalStructure
Field Summary
Inherited: lock, logger
Constructor Summary
Constructor and description
new(Context,LoggingService,Injector,ContextFactory,Provider<T>)
Constructor.
Action Summary
Modifier and type Action and description
java.util.Collection<E> getAllContexts
protected java.util.Map<K,V> getContextInternalStructure
Property Details
allContexts
val allContexts : java.util.Collection<E>

This property is an alias for the action: getAllContexts

contextInternalStructure
protected val contextInternalStructure : java.util.Map<K,V>

This property is an alias for the action: getContextInternalStructure

Constructor Details
new(Context,LoggingService,Injector,ContextFactory,Provider<T>)
new(Context,LoggingService,Injector,ContextFactory,Provider<T>)
Constructor.
Parameters:
rootContext - the root context.
logger - the logging service to be used.
injector - is the injector.
factory - is the factory of contexts.
factories - the provider of factories tool.
Action Details
getAllContexts
def getAllContexts : java.util.Collection<E>
getContextInternalStructure
protected def getContextInternalStructure : java.util.Map<K,V>