to.etc.domui.converter
Class DefaultConverterFactory

java.lang.Object
  extended by to.etc.domui.converter.DefaultConverterFactory
All Implemented Interfaces:
IConverterFactory

public final class DefaultConverterFactory
extends java.lang.Object
implements IConverterFactory

This is the default converter factory, which returns the default converter instance all of the time. FIXME Needed still?

Author:
Frits Jalvingh Created on Dec 30, 2008

Constructor Summary
DefaultConverterFactory()
           
 
Method Summary
 int accept(java.lang.Class<?> clz, PropertyMetaModel<?> pmm)
          Returns 1 all of the time: accepts everything.
<X,T extends IConverter<X>>
T
createConverter(java.lang.Class<X> clz, PropertyMetaModel<X> pmm)
          Return the converter which properly converts the specified class and meta model.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultConverterFactory

public DefaultConverterFactory()
Method Detail

accept

public int accept(java.lang.Class<?> clz,
                  PropertyMetaModel<?> pmm)
Returns 1 all of the time: accepts everything.

Specified by:
accept in interface IConverterFactory
Returns:
See Also:
IConverterFactory.accept(java.lang.Class, to.etc.domui.component.meta.PropertyMetaModel)

createConverter

public <X,T extends IConverter<X>> T createConverter(java.lang.Class<X> clz,
                                                     PropertyMetaModel<X> pmm)
Description copied from interface: IConverterFactory
Return the converter which properly converts the specified class and meta model.

Specified by:
createConverter in interface IConverterFactory
Returns: