Browse Source

Update Container class to use new configuration of attribute method.

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

+ 21
- 4
proposal/myrmidon/src/java/org/apache/myrmidon/framework/AbstractContainerTask.java View File

@@ -27,6 +27,7 @@ import org.apache.myrmidon.components.executor.Executor;
*/ */
public abstract class AbstractContainerTask public abstract class AbstractContainerTask
extends AbstractTask extends AbstractTask
implements Composable
{ {
///For converting own attributes ///For converting own attributes
private MasterConverter m_converter; private MasterConverter m_converter;
@@ -95,15 +96,31 @@ public abstract class AbstractContainerTask
} }


/** /**
* Configure a value using specific configuration element.
* Configure an object using specific configuration element.
* *
* @param child the child
* @param object the object
* @param element the configuration element * @param element the configuration element
* @exception ConfigurationException if an error occurs
*/
protected final void configure( final Object object, final Configuration element )
throws ConfigurationException
{
getConfigurer().configure( object, element, getContext() );
}


/**
* Configure an objects attribute using parameters.
*
* @param object the object
* @param name the attibute name
* @param value the attibute value
* @exception ConfigurationException if an error occurs
*/ */
protected final void configure( final Object value, final Configuration element )
protected final void configure( final Object object, final String name, final String value )
throws ConfigurationException throws ConfigurationException
{ {
getConfigurer().configure( value, element, getContext() );
getConfigurer().configure( object, name, value, getContext() );
} }


/** /**


Loading…
Cancel
Save