Browse Source

Make class Resolvable so that converters get direct access to the underlying TaskContext

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271494 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Donald 23 years ago
parent
commit
b20531c93c
1 changed files with 8 additions and 1 deletions
  1. +8
    -1
      proposal/myrmidon/src/java/org/apache/myrmidon/interfaces/configurer/TaskContextAdapter.java

+ 8
- 1
proposal/myrmidon/src/java/org/apache/myrmidon/interfaces/configurer/TaskContextAdapter.java View File

@@ -9,6 +9,7 @@ package org.apache.myrmidon.interfaces.configurer;

import org.apache.avalon.framework.context.Context;
import org.apache.avalon.framework.context.ContextException;
import org.apache.avalon.framework.context.Resolvable;
import org.apache.myrmidon.api.TaskContext;

/**
@@ -18,7 +19,7 @@ import org.apache.myrmidon.api.TaskContext;
* @version $Revision$ $Date$
*/
public class TaskContextAdapter
implements Context
implements Context, Resolvable
{
private final TaskContext m_context;

@@ -27,6 +28,12 @@ public class TaskContextAdapter
m_context = context;
}

public Object resolve( Context context )
throws ContextException
{
return m_context;
}

public Object get( Object key )
throws ContextException
{


Loading…
Cancel
Save