org.codehaus.spice.converter.lib
Class DefaultMasterConverter

java.lang.Object
  |
  +--org.codehaus.spice.converter.AbstractMasterConverter
        |
        +--org.codehaus.spice.converter.lib.DefaultMasterConverter
All Implemented Interfaces:
Converter, ConverterRegistry

public class DefaultMasterConverter
extends AbstractMasterConverter
implements ConverterRegistry

A very simple master converter that implements the ConverterRegistry interface. Converters can be registered in this class via the ConverterRegistry interface and will subsequently used during conversion process.

Version:
$Revision: 1.1 $ $Date: 2003/12/02 08:37:56 $
Author:
Peter Donald

Constructor Summary
DefaultMasterConverter()
           
 
Method Summary
 void registerConverter(String source, String destination, ConverterFactory factory)
          Registers a converter.
 
Methods inherited from class org.codehaus.spice.converter.AbstractMasterConverter
convert, registerConverter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultMasterConverter

public DefaultMasterConverter()
Method Detail

registerConverter

public void registerConverter(String source,
                              String destination,
                              ConverterFactory factory)
Registers a converter.

Specified by:
registerConverter in interface ConverterRegistry
Parameters:
source - the source classname
destination - the destination classname
factory - the factory to use to create a converter instance.


Copyright © 2000-2003 Codehaus. All Rights Reserved.