Package org.apache.tapestry5.services
Interface ValueEncoderSource
- All Known Implementing Classes:
ValueEncoderSourceImpl
@UsesMappedConfiguration(key=java.lang.Class.class,
value=ValueEncoderFactory.class)
public interface ValueEncoderSource
A source for value encoders based on a property type.
-
Method Summary
Modifier and TypeMethodDescription<T> ValueEncoder<T>
getValueEncoder
(Class<T> type) Gets or creates a value encoder for the indicated type.
-
Method Details
-
getValueEncoder
Gets or creates a value encoder for the indicated type. ValueEncoders are cached.- Parameters:
type
- type of value to be encoded and decoded- Returns:
- the value encoder
-