Class GenericValueEncoderFactory<V>
java.lang.Object
org.apache.tapestry5.internal.services.GenericValueEncoderFactory<V>
- Type Parameters:
V
- the type of the value.
- All Implemented Interfaces:
ValueEncoderFactory<V>
An implementation of
ValueEncoderFactory
that returns a pre-wired instance of ValueEncoder
. This is
odd for a factory, because it doesn't actually create the returned instance, just stores it until the encoder is
needed.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionFor a given type, create an encoder.static <V> GenericValueEncoderFactory<V>
create
(ValueEncoder<V> encoder)
-
Constructor Details
-
GenericValueEncoderFactory
-
-
Method Details
-
create
Description copied from interface:ValueEncoderFactory
For a given type, create an encoder.- Specified by:
create
in interfaceValueEncoderFactory<V>
- Parameters:
type
- type of object for which an encoder is needed- Returns:
- the encoder for the object
-
create
-