net.sourceforge.smile.converter
Class ConverterFactory

java.lang.Object
  extended bynet.sourceforge.smile.converter.ConverterFactory

public class ConverterFactory
extends java.lang.Object

Author:
codehawk This class is responsible for keeping track of the registered converters in the system and also functions as a factory for creating converters, based on converter id.

Method Summary
 void addConverter(java.lang.String converterId, java.lang.Class converterClass)
          Registers a component type with the factory.
 javax.faces.convert.Converter getConverter(java.lang.String converterId)
          Requests the factory for an instance of the specified converter id.
 java.util.Iterator getConverterClasses()
          Returns an iterator that contains all registered converter classes.
 java.util.Iterator getConverterIds()
          Returns an iterator that contains all registeres converter ids.
static ConverterFactory getInstance()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ConverterFactory getInstance()

addConverter

public void addConverter(java.lang.String converterId,
                         java.lang.Class converterClass)
Registers a component type with the factory.


getConverter

public javax.faces.convert.Converter getConverter(java.lang.String converterId)
                                           throws javax.faces.FacesException
Requests the factory for an instance of the specified converter id.

Parameters:
converterId -
Returns:
Throws:
javax.faces.FacesException

getConverterClasses

public java.util.Iterator getConverterClasses()
Returns an iterator that contains all registered converter classes.

Returns:

getConverterIds

public java.util.Iterator getConverterIds()
Returns an iterator that contains all registeres converter ids.

Returns: