org.realityforge.converter.lib
Class SingletonConverterFactory

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

public class SingletonConverterFactory
extends Object
implements ConverterFactory

A converter factory that just returns value supplied in ctor.

Version:
$Revision: 1.1 $ $Date: 2003/04/04 11:26:44 $
Author:
Peter Donald

Constructor Summary
SingletonConverterFactory(Converter converter)
          Create factory with specified converter as singleton returned.
 
Method Summary
 Converter createConverter()
          Return the singleton converter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingletonConverterFactory

public SingletonConverterFactory(Converter converter)
Create factory with specified converter as singleton returned.

Parameters:
converter - the converter
Method Detail

createConverter

public Converter createConverter()
Return the singleton converter.

Specified by:
createConverter in interface ConverterFactory
Returns:
the singleton converter.


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