users@jsonb-spec.java.net

[jsonb-spec users] [jsr367-experts] adapter: new withAdapter method?

From: Romain Manni-Bucau <rmannibucau_at_tomitribe.com>
Date: Fri, 29 Jan 2016 19:10:55 +0100

do we add a withAdapter(from, to, adapter) method to JsonbConfig?

it would allow anonymous adapters to work instead of having to create a
class.

Also the javadoc should be updated since to and from method have the same
and we don't know if the json type should be from or to - I'd assume from
but would be good to make it clear. Or do we support auto detection (ie <A,
B> = <B, A> for the runtime? this would prevent custom logic in one
particular way if so)

Romain Manni-Bucau
@rmannibucau
http://www.tomitribe.com
http://rmannibucau.wordpress.com
https://github.com/rmannibucau