I figured it out:
public static void
contributeValueEncoderSource(MappedConfiguration<Class,
ValueEncoderFactory> configuration) {
configuration.add(Map.class, new
GenericValueEncoderFactory<Map>(new MapValueEncoder()));
}
thx
Joel Halbert wrote:
Hi,
I would like to register my own custom ValueEncoder (to be used by the
ContextValueEncoder) for specific types.
Are there any examples of registering a custom ValueEncoder with
ValueEncoderSource?
Thanks,
Joel
--
SU3 Analytics Ltd
61b Oxford Gardens
W10 5UJ
London
Tel: +44 20 8960 2634
Mob: +44 75 2501 0825
www.su3analytics.com
SU3 Analytics Ltd is a company registered in England and Wales under company
number 06639473 at registered address 61b Oxford Gardens, London W10 5UJ,
United Kingdom.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]