From b20531c93c277088ee73f7410025051b383d302e Mon Sep 17 00:00:00 2001 From: Peter Donald Date: Thu, 21 Feb 2002 11:03:53 +0000 Subject: [PATCH] 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 --- .../interfaces/configurer/TaskContextAdapter.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/proposal/myrmidon/src/java/org/apache/myrmidon/interfaces/configurer/TaskContextAdapter.java b/proposal/myrmidon/src/java/org/apache/myrmidon/interfaces/configurer/TaskContextAdapter.java index 43bffb623..8f8be0164 100644 --- a/proposal/myrmidon/src/java/org/apache/myrmidon/interfaces/configurer/TaskContextAdapter.java +++ b/proposal/myrmidon/src/java/org/apache/myrmidon/interfaces/configurer/TaskContextAdapter.java @@ -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 {