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 <a href="mailto:[EMAIL PROTECTED]">Peter Donald</a> - * @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: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>