donaldp 01/06/12 06:37:30
Modified:
proposal/myrmidon/src/java/org/apache/myrmidon/components/executor
Executor.java
Added:
proposal/myrmidon/src/java/org/apache/myrmidon/components/executor
ExecutionFrame.java
Log:
Made Executor support a TaskFrame. The TaskFrame is where
context/logger/componentManager/typeManager are stored.
Revision Changes Path
1.6 +1 -1
jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/components/executor/Executor.java
Index: Executor.java
===================================================================
RCS file:
/home/cvs/jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/components/executor/Executor.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- Executor.java 2001/06/02 08:40:10 1.5
+++ Executor.java 2001/06/12 13:37:28 1.6
@@ -28,6 +28,6 @@
* @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;
}
1.1
jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/components/executor/ExecutionFrame.java
Index: ExecutionFrame.java
===================================================================
/*
* 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:[EMAIL PROTECTED]">Peter Donald</a>
*/
public interface ExecutionFrame
{
TypeManager getTypeManager();
Logger getLogger();
TaskContext getContext();
ComponentManager getComponentManager();
}