Browse Source

Ugly hackity hack owrapping TaskContext to make it an Avalon context.

Need to define a clean interface to export to Container object that is basically a facade and takes care of all this


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

+ 5
- 2
proposal/myrmidon/src/java/org/apache/myrmidon/framework/AbstractContainerTask.java View File

@@ -22,6 +22,7 @@ import org.apache.myrmidon.interfaces.executor.Executor;
import org.apache.myrmidon.interfaces.type.TypeException;
import org.apache.myrmidon.interfaces.type.TypeFactory;
import org.apache.myrmidon.interfaces.type.TypeManager;
import org.apache.myrmidon.interfaces.configurer.TaskContextAdapter;

/**
* This is the class that Task writers should extend to provide custom tasks.
@@ -90,7 +91,8 @@ public abstract class AbstractContainerTask
protected final void configure( final Object object, final Configuration element )
throws ConfigurationException
{
getConfigurer().configure( object, element, getContext() );
final TaskContextAdapter context = new TaskContextAdapter( getContext() );
getConfigurer().configure( object, element, context );
}

/**
@@ -104,7 +106,8 @@ public abstract class AbstractContainerTask
protected final void configure( final Object object, final String name, final String value )
throws ConfigurationException
{
getConfigurer().configure( object, name, value, getContext() );
final TaskContextAdapter context = new TaskContextAdapter( getContext() );
getConfigurer().configure( object, name, value, context );
}

/**


Loading…
Cancel
Save