Class TypeCoercedValueEncoderFactory
- java.lang.Object
-
- org.apache.tapestry5.internal.services.TypeCoercedValueEncoderFactory
-
- All Implemented Interfaces:
ValueEncoderFactory<java.lang.Object>
public class TypeCoercedValueEncoderFactory extends java.lang.Object implements ValueEncoderFactory<java.lang.Object>
ProvidesValueEncoder
instances that are backed by theTypeCoercer
service.
-
-
Constructor Summary
Constructors Constructor Description TypeCoercedValueEncoderFactory(TypeCoercer typeCoercer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ValueEncoder<java.lang.Object>
create(java.lang.Class<java.lang.Object> type)
For a given type, create an encoder.
-
-
-
Constructor Detail
-
TypeCoercedValueEncoderFactory
public TypeCoercedValueEncoderFactory(TypeCoercer typeCoercer)
-
-
Method Detail
-
create
public ValueEncoder<java.lang.Object> create(java.lang.Class<java.lang.Object> type)
Description copied from interface:ValueEncoderFactory
For a given type, create an encoder.- Specified by:
create
in interfaceValueEncoderFactory<java.lang.Object>
- Parameters:
type
- type of object for which an encoder is needed- Returns:
- the encoder for the object
-
-