io.sarl.sre.janus.services.lifecycle
Class InjectionBasedLifecycleService
All Superinterfaces:
LifecycleService, org.arakhne.afc.services.IService
class InjectionBasedLifecycleService
extends AbstractLifecycleService
Implementation of a spawning service that is using injection mechanism for creating the agent.
Maven Group Identifier:
io.sarl.sre.janus
Maven Artifact Identifier:
janus.kernel
Property Summary
Constructor Summary
Action Summary
Constructor Details
new(Injector,SarlSpecificationChecker,Provider<T>,Provider<T>,Provider<T>,Provider<T>,DynamicSkillProvider,SkillUninstaller,ExecutorService,LoggingService,SreConfig)
new(Injector,SarlSpecificationChecker,Provider<T>,Provider<T>,Provider<T>,Provider<T>,DynamicSkillProvider,SkillUninstaller,ExecutorService,LoggingService,SreConfig)
Constructs the service with the given (injected) injector.
Parameters:
injector - the injector that should be used by this service for creating the agents.
sarlSpecificationChecker - the tool for checking the validity of the SARL specification supported by the agents to launch.
factories - the provider of factories tool.
agentLevelInjector - the dynamic injector for the agent level.
lifecycleListener - the listener at the platform scale on life cycle events.
externalContextListener - the listener at the platform scale on context membership events.
skillUninstaller - the object this is able to uninstall the skills.
executor - the executor service.
logger - the logging service.
sreConfig - the configuration of the SRE.
new(SarlSpecificationChecker,AgentCreatorProvider,Provider<T>,Provider<T>,Provider<T>,Provider<T>,DynamicSkillProvider,SkillUninstaller,ExecutorService,LoggingService,LifecycleConfig)
new(SarlSpecificationChecker,AgentCreatorProvider,Provider<T>,Provider<T>,Provider<T>,Provider<T>,DynamicSkillProvider,SkillUninstaller,ExecutorService,LoggingService,LifecycleConfig)
Constructs the service.
Parameters:
sarlSpecificationChecker - the tool for checking the validity of the SARL specification supported by the agents to launch.
creator - the provider of agent creators that is used when spawning agents.
factories - the provider of factories tool.
agentLevelInjector - the dynamic injector for the agent level.
lifecycleListener - the listener at the platform scale on life cycle events.
externalContextListener - the listener at the platform scale on context membership events.
skillUninstaller - the object this is able to uninstall the skills.
executor - the executor service.
logger - the logging service.
lifecycleConfig - the configuration of the lifecycle service.