Browse Source

Move AbstractMasterConverter from

org.apache.myrmidon.components.converter

to

org.apache.aut.converter


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271974 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Donald 23 years ago
parent
commit
2d59643f6a
2 changed files with 5 additions and 3 deletions
  1. +4
    -3
      proposal/myrmidon/src/java/org/apache/aut/converter/AbstractMasterConverter.java
  2. +1
    -0
      proposal/myrmidon/src/java/org/apache/myrmidon/components/converter/DefaultMasterConverter.java

proposal/myrmidon/src/java/org/apache/myrmidon/components/converter/AbstractMasterConverter.java → proposal/myrmidon/src/java/org/apache/aut/converter/AbstractMasterConverter.java View File

@@ -5,7 +5,7 @@
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE.txt file.
*/
package org.apache.myrmidon.components.converter;
package org.apache.aut.converter;

import java.util.ArrayList;
import java.util.HashMap;
@@ -14,6 +14,7 @@ import org.apache.aut.converter.Converter;
import org.apache.aut.converter.ConverterException;
import org.apache.avalon.excalibur.i18n.ResourceManager;
import org.apache.avalon.excalibur.i18n.Resources;
import org.apache.myrmidon.components.converter.DefaultMasterConverter;

/**
* This is an abstract implementation of a <code>MasterConverter</code>.
@@ -58,7 +59,7 @@ public class AbstractMasterConverter
* @param original the original object
* @param context the context in which to convert
* @return the converted object
* @exception ConverterException if an error occurs
* @exception org.apache.aut.converter.ConverterException if an error occurs
*/
public Object convert( final Class destination,
final Object original,
@@ -136,7 +137,7 @@ public class AbstractMasterConverter
*
* @param name the name of converter
* @return the created converter instance
* @throws Exception if converter can not be created.
* @throws java.lang.Exception if converter can not be created.
*/
protected abstract Converter createConverter( final String name )
throws Exception;

+ 1
- 0
proposal/myrmidon/src/java/org/apache/myrmidon/components/converter/DefaultMasterConverter.java View File

@@ -8,6 +8,7 @@
package org.apache.myrmidon.components.converter;

import org.apache.aut.converter.Converter;
import org.apache.aut.converter.AbstractMasterConverter;
import org.apache.avalon.framework.service.ServiceException;
import org.apache.avalon.framework.service.ServiceManager;
import org.apache.avalon.framework.service.Serviceable;


Loading…
Cancel
Save