Browse Source

Made Executor support a TaskFrame. The TaskFrame is where context/logger/componentManager/typeManager are stored.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269150 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Donald 24 years ago
parent
commit
3ab3efa970
2 changed files with 27 additions and 1 deletions
  1. +26
    -0
      proposal/myrmidon/src/java/org/apache/myrmidon/components/executor/ExecutionFrame.java
  2. +1
    -1
      proposal/myrmidon/src/java/org/apache/myrmidon/components/executor/Executor.java

+ 26
- 0
proposal/myrmidon/src/java/org/apache/myrmidon/components/executor/ExecutionFrame.java View File

@@ -0,0 +1,26 @@
/*
* Copyright (C) The Apache Software Foundation. All rights reserved.
*
* This software is published under the terms of the Apache Software License
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE file.
*/
package org.apache.myrmidon.components.executor;

import org.apache.avalon.framework.component.ComponentManager;
import org.apache.log.Logger;
import org.apache.myrmidon.components.type.TypeManager;
import org.apache.myrmidon.api.TaskContext;

/**
* Frames in which tasks are executed.
*
* @author <a href="mailto:donaldp@apache.org">Peter Donald</a>
*/
public interface ExecutionFrame
{
TypeManager getTypeManager();
Logger getLogger();
TaskContext getContext();
ComponentManager getComponentManager();
}

+ 1
- 1
proposal/myrmidon/src/java/org/apache/myrmidon/components/executor/Executor.java View File

@@ -28,6 +28,6 @@ public interface Executor
* @param task the configruation data for task
* @exception TaskException if an error occurs
*/
void execute( Configuration task, TaskContext context )
void execute( Configuration task, ExecutionFrame frame )
throws TaskException;
}

Loading…
Cancel
Save