Class BackgroundEngineHelper

java.lang.Object
org.ametys.core.engine.BackgroundEngineHelper

public final class BackgroundEngineHelper extends Object
Abstract class for work run in a separate thread.
  • Method Details

    • environmentExists

      public static boolean 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

      public static void leaveEngineEnvironment(Map<String,Object> environmentInformation)
      Leave the cocoon environment.
      Parameters:
      environmentInformation - the environment information.