Return-Path: Delivered-To: apmail-jakarta-ant-dev-archive@apache.org Received: (qmail 15893 invoked from network); 21 Apr 2002 02:02:03 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 21 Apr 2002 02:02:03 -0000 Received: (qmail 22338 invoked by uid 97); 21 Apr 2002 02:02:00 -0000 Delivered-To: qmlist-jakarta-archive-ant-dev@jakarta.apache.org Received: (qmail 22271 invoked by uid 97); 21 Apr 2002 02:02:00 -0000 Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 22260 invoked by uid 97); 21 Apr 2002 02:01:59 -0000 Date: 21 Apr 2002 02:01:49 -0000 Message-ID: <20020421020149.19495.qmail@icarus.apache.org> From: donaldp@apache.org To: jakarta-ant-myrmidon-cvs@apache.org Subject: cvs commit: jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/interfaces/configurer Configurer.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N donaldp 02/04/20 19:01:49 Modified: container/src/java/org/apache/myrmidon/interfaces/configurer Configurer.java Log: Update Configurer interface to take a ModelElement rather than a Configuration. Revision Changes Path 1.13 +14 -14 jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/interfaces/configurer/Configurer.java Index: Configurer.java =================================================================== RCS file: /home/cvs/jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/interfaces/configurer/Configurer.java,v retrieving revision 1.12 retrieving revision 1.13 diff -u -r1.12 -r1.13 --- Configurer.java 1 Apr 2002 09:56:26 -0000 1.12 +++ Configurer.java 21 Apr 2002 02:01:49 -0000 1.13 @@ -7,15 +7,15 @@ */ package org.apache.myrmidon.interfaces.configurer; -import org.apache.avalon.framework.configuration.Configuration; -import org.apache.avalon.framework.configuration.ConfigurationException; import org.apache.myrmidon.api.TaskContext; +import org.apache.myrmidon.api.metadata.ModelElement; +import org.apache.myrmidon.api.metadata.ModelException; /** * Class used to configure tasks. * * @author Peter Donald - * @version $Revision: 1.12 $ $Date: 2002/04/01 09:56:26 $ + * @version $Revision: 1.13 $ $Date: 2002/04/21 02:01:49 $ * @ant:role shorthand="configurer" */ public interface Configurer @@ -29,12 +29,12 @@ * configurers. * * @param object the object - * @param configuration the configuration + * @param model the model of the element * @param context the Context - * @exception ConfigurationException if an error occurs + * @exception ModelException if an error occurs */ - void configureElement( Object object, Configuration configuration, TaskContext context ) - throws ConfigurationException; + void configureElement( Object object, ModelElement model, TaskContext context ) + throws ModelException; /** * Configure named attribute of object in a particular context. @@ -45,10 +45,10 @@ * @param name the attribute name * @param value the attribute value * @param context the Context - * @exception ConfigurationException if an error occurs + * @throws ModelException if an error occurs */ void configureAttribute( Object object, String name, String value, TaskContext context ) - throws ConfigurationException; + throws ModelException; /** * Configure an object based on a configuration in a particular context. @@ -64,13 +64,13 @@ * @param clazz the Class object to use during configuration * @param configuration the configuration * @param context the Context - * @exception ConfigurationException if an error occurs + * @exception ModelException if an error occurs */ void configureElement( Object object, Class clazz, - Configuration configuration, + ModelElement configuration, TaskContext context ) - throws ConfigurationException; + throws ModelException; /** * Configure named attribute of object in a particular context. @@ -87,12 +87,12 @@ * @param name the attribute name * @param value the attribute value * @param context the Context - * @exception ConfigurationException if an error occurs + * @exception ModelException if an error occurs */ void configureAttribute( Object object, Class clazz, String name, String value, TaskContext context ) - throws ConfigurationException; + throws ModelException; } -- To unsubscribe, e-mail: For additional commands, e-mail: