org.apache.tapestry.coerce
Class ValueConverterImpl

java.lang.Object
  extended by org.apache.tapestry.coerce.ValueConverterImpl
All Implemented Interfaces:
ValueConverter

public class ValueConverterImpl
extends Object
implements ValueConverter

Implementation of ValueConverter. Selects an appropriate type converter and delegates to it.

Since:
4.0
Author:
Howard M. Lewis Ship

Field Summary
 List _contributions
          List of TypeConverterContribution.
 
Constructor Summary
ValueConverterImpl()
           
 
Method Summary
 Object coerceValue(Object value, Class desiredType)
          Performs a conversion of a value to a particular type.
 void initializeService()
           
 void setContributions(List contributions)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_contributions

public List _contributions
List of TypeConverterContribution.

Constructor Detail

ValueConverterImpl

public ValueConverterImpl()
Method Detail

initializeService

public void initializeService()

coerceValue

public Object coerceValue(Object value,
                          Class desiredType)
Description copied from interface: ValueConverter
Performs a conversion of a value to a particular type.

Specified by:
coerceValue in interface ValueConverter
Parameters:
value - The value to be converted (may be null)
desiredType - the type that will be converted to

setContributions

public void setContributions(List contributions)


Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.