Browse Source

Expose the new Configuration methods in AbstractContainer task

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271838 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Donald 23 years ago
parent
commit
cc482fe8a9
1 changed files with 35 additions and 1 deletions
  1. +35
    -1
      proposal/myrmidon/src/java/org/apache/myrmidon/framework/AbstractContainerTask.java

+ 35
- 1
proposal/myrmidon/src/java/org/apache/myrmidon/framework/AbstractContainerTask.java View File

@@ -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.
*/


Loading…
Cancel
Save