Class ExecutionEnvironment

    • Field Detail

      • taskProvider

        protected final com.google.inject.Provider<Task> taskProvider
      • tasks

        protected final List<Task> tasks
    • Constructor Detail

      • ExecutionEnvironment

        @Inject
        public ExecutionEnvironment​(com.google.inject.Provider<Task> taskProvider)
        Constructs a ExecutionEnvironment.
        Parameters:
        taskProvider - the task provider
    • Method Detail

      • execute

        public void execute​(Collection<com.google.inject.Module> modules)
        Executes the specified modules: A Task is created and submitted.
        Parameters:
        modules - the collection of modules for a Task
      • addTask

        protected void addTask​(Task task)
        Adds a Task and calls the listeners.
        Parameters:
        task - the task to add
      • addListener

        public void addListener​(TaskListener listener)
        Adds a TaskListener.
        Parameters:
        listener - the listener to be added
      • getTasks

        public List<Task> getTasks()
        Returns the list of all Tasks.
        Returns:
        the list of all tasks