Package org.ametys.core.engine
Class BackgroundEngineHelper
java.lang.Object
org.ametys.core.engine.BackgroundEngineHelper
Abstract class for work run in a separate thread.
-
Method Summary
Modifier and TypeMethodDescriptioncreateAndEnterEngineEnvironment
(ServiceManager manager, Context context, Logger logger) Create and enter a cocoon environment specific to the engine.static boolean
Test if cocoon is currently in an environment.static void
leaveEngineEnvironment
(Map<String, Object> environmentInformation) Leave the cocoon environment.
-
Method Details
-
environmentExists
Test if cocoon is currently in an environment.- Returns:
- true if cocoon is currently in an environment, false otherwise.
-
createAndEnterEngineEnvironment
public static Map<String,Object> createAndEnterEngineEnvironment(ServiceManager manager, Context context, Logger logger) Create and enter a cocoon environment specific to the engine.- Parameters:
manager
- the avalon service manager.context
- the cocoon environment context.logger
- the class logger.- Returns:
- a Map with the environment information.
-
leaveEngineEnvironment
Leave the cocoon environment.- Parameters:
environmentInformation
- the environment information.
-