diff --git a/proposal/myrmidon/src/java/org/apache/myrmidon/framework/AbstractContainerTask.java b/proposal/myrmidon/src/java/org/apache/myrmidon/framework/AbstractContainerTask.java index 52e056f12..19df5c711 100644 --- a/proposal/myrmidon/src/java/org/apache/myrmidon/framework/AbstractContainerTask.java +++ b/proposal/myrmidon/src/java/org/apache/myrmidon/framework/AbstractContainerTask.java @@ -89,12 +89,29 @@ public abstract class AbstractContainerTask * @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. * @@ -109,6 +126,23 @@ public abstract class AbstractContainerTask 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() ); + } + /** * Utility method to execute specified tasks in current ExecutionFrame. */