Class BackgroundEngineHelper

    • Method Detail

      • 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,​ObjectcreateAndEnterEngineEnvironment​(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.