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
<T> ValueEncoder<T>
getValueEncoder(Class<T> type)
          Gets or creates a value encoder for the indicated type.
 

Method Detail

getValueEncoder

<T> ValueEncoder<T> getValueEncoder(Class<T> type)
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


Copyright © 2003-2012 The Apache Software Foundation.