SRJRCFrames
v0.1.296

de.schwarzrot.data.support
Class ConverterFactory

java.lang.Object
  extended by 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)

Constructor Summary
ConverterFactory()
           
 
Method Summary
 void addConverter(Converter c)
           
 Converter converter4Class(Class<?> valueType)
           
 Converter getConverter(Class<?> valueType)
          retrieve a converter setup for the given type.
 void setConverters(List<Converter> list)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConverterFactory

public ConverterFactory()
Method Detail

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)

SRJRCFrames
v0.1.296

hosted at
Find SRJRCFrames at SourceForge.net. Fast, secure and free:
           Open Source Software download
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.