donaldp 02/03/13 01:35:55
Modified: proposal/myrmidon/src/java/org/apache/myrmidon/framework
AbstractContainerTask.java
Log:
Expose the new Configuration methods in AbstractContainer task
Revision Changes Path
1.21 +36 -2
jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/framework/AbstractContainerTask.java
Index: AbstractContainerTask.java
===================================================================
RCS file:
/home/cvs/jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/framework/AbstractContainerTask.java,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- AbstractContainerTask.java 12 Mar 2002 10:33:54 -0000 1.20
+++ AbstractContainerTask.java 13 Mar 2002 09:35:55 -0000 1.21
@@ -27,7 +27,7 @@
* This is the class that Task writers should extend to provide custom tasks.
*
* @author <a href="mailto:[EMAIL PROTECTED]">Peter Donald</a>
- * @version $Revision: 1.20 $ $Date: 2002/03/12 10:33:54 $
+ * @version $Revision: 1.21 $ $Date: 2002/03/13 09:35:55 $
*/
public abstract class AbstractContainerTask
extends AbstractTask
@@ -89,13 +89,30 @@
* @param element the configuration element
* @exception ConfigurationException if an error occurs
*/
- protected final void configureElement( final Object object, final
Configuration element )
+ protected final void configureElement( final Object object,
+ final Configuration element )
throws ConfigurationException
{
m_configurer.configureElement( object, element, getContext() );
}
/**
+ * Configure an object using specific configuration element.
+ *
+ * @param object the object
+ * @param clazz the class to use when configuring element
+ * @param element the configuration element
+ * @exception ConfigurationException if an error occurs
+ */
+ protected final void configureElement( final Object object,
+ final Class clazz,
+ final Configuration element )
+ throws ConfigurationException
+ {
+ m_configurer.configureElement( object, clazz, element, getContext()
);
+ }
+
+ /**
* Configure an objects attribute using parameters.
*
* @param object the object
@@ -107,6 +124,23 @@
throws ConfigurationException
{
m_configurer.configureAttribute( object, name, value, getContext() );
+ }
+
+ /**
+ * Configure an objects attribute using parameters.
+ *
+ * @param object the object
+ * @param clazz the class to use when configuring element
+ * @param name the attibute name
+ * @param value the attibute value
+ * @exception ConfigurationException if an error occurs
+ */
+ protected final void configureAttribute( final Object object,
+ final Class clazz,
+ final String name, final String
value )
+ throws ConfigurationException
+ {
+ m_configurer.configureAttribute( object, clazz, name, value,
getContext() );
}
/**
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>