public abstract class AbstractInjectionBasedContextService extends AbstractContextService
This service is thread-safe.
lock, logger
Modifier | Constructor and Description |
---|---|
protected |
AbstractInjectionBasedContextService(rootContext : Context,
logger : LoggingService,
injector : com.google.inject.Injector,
factory : ContextFactory,
factories : javax.inject.Provider<Factories>)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected Context |
newContextInstance(contextID : UUID,
defaultSpaceID : UUID,
owner : Agent)
Create a context instance.
|
createContext, createContextWithoutRegistration, createLogger, getContext, getContextInternalStructure, getRootContext, onStart, onStop, removeContext
doStart, doStop
addListener, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, doCancelStart, failureCause, isRunning, notifyFailed, notifyStarted, notifyStopped, startAsync, state, stopAsync, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAllContexts
protected new
(rootContext : Context,
logger : LoggingService,
injector : com.google.inject.Injector,
factory : ContextFactory,
factories : javax.inject.Provider<Factories>)
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.protected def
newContextInstance(contextID : UUID,
defaultSpaceID : UUID,
owner : Agent) : Context
AbstractContextService
This function is not thread-safe.
newContextInstance
in class AbstractContextService
contextID
- the identifier of the context.owner
- is the owner of the context. If null
, the context is the root contextCopyright © 2021 the original authors or authors.