de.schwarzrot.data.support
Class ConverterFactory
java.lang.Object
de.schwarzrot.data.support.ConverterFactory
public class ConverterFactory
- extends Object
factory to allow anonymous data conversion / data handling with entities. The
factory is setup by application context and used by indirection of
ApplicationServiceProvider
.
- Author:
- Reinhard Mantey
- See Also:
EntityUtils.fillEntity(de.schwarzrot.data.Entity,
de.schwarzrot.data.access.support.EntityDescriptor,
de.schwarzrot.data.access.DataAccessor,
de.schwarzrot.data.access.support.EntityIntrospector)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConverterFactory
public ConverterFactory()
addConverter
public void addConverter(Converter c)
converter4Class
public Converter converter4Class(Class<?> valueType)
getConverter
public Converter getConverter(Class<?> valueType)
- retrieve a converter setup for the given type. This call will always
return a converter. If no converter has been setup for the given type, a
NullConverter
is returned.
- Parameters:
valueType
- the type of a java beans property
- Returns:
- a matching converter
setConverters
public void setConverters(List<Converter> list)
Submit
a bug or request a feature
SRJRCFrames is published according to the
GNU General Public License
Copyright 2005-2012
Reinhard Mantey - some rights reserved.