org.realityforge.converter.lib
Class SimpleConverterFactory

java.lang.Object
  |
  +--org.realityforge.converter.lib.SimpleConverterFactory
All Implemented Interfaces:
ConverterFactory

public class SimpleConverterFactory
extends Object
implements ConverterFactory

A ConverterFactory that creates converter instances using reflection.

Version:
$Revision: 1.5 $ $Date: 2003/05/24 23:50:26 $
Author:
Adam Murdoch

Constructor Summary
SimpleConverterFactory(Class converterClass)
           
 
Method Summary
 Converter createConverter()
          Creates an instance of a converter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleConverterFactory

public SimpleConverterFactory(Class converterClass)
Method Detail

createConverter

public Converter createConverter()
                          throws Exception
Creates an instance of a converter.

Specified by:
createConverter in interface ConverterFactory
Returns:
the Converter object
Throws:
Exception - if unable to create converter


Copyright © 2000-2003 The Spice Group. All Rights Reserved.