org.apache.commons.convert
Interface ConverterCreator

All Known Implementing Classes:
CollectionConverters.ArrayCreator, CollectionConverters.ListCreator, CollectionConverters.SetCreator, Converters.PassThruConverterCreator, MiscConverters.StringToEnumConverterCreator

public interface ConverterCreator

ConverterCreator interface. Classes implement this interface to create a converter that can convert one Java object type to another.

ConverterCreator is used to dynamically create converters for target classes that implement an interface.


Method Summary
<S,T> Converter<S,T>
createConverter(Class<S> sourceClass, Class<T> targetClass)
          Creates a Converter that can convert the sourceClass to the targetClass.
 

Method Detail

createConverter

<S,T> Converter<S,T> createConverter(Class<S> sourceClass,
                                     Class<T> targetClass)
Creates a Converter that can convert the sourceClass to the targetClass. Returns null if this creator doesn't support the class pair.

Parameters:
sourceClass - The source Class to convert from
targetClass - The target Class to convert to
Returns:
A Converter that can convert sourceClass to targetClass


Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.