I don't know if this is a bug, a feature request or just the way it is supposed to be, but here it goes...
I have the following piece of code
Registry registry = new Registry();
Strategy strategy = new RegistryStrategy(registry);
Serializer outSerializer = new Persister(strategy);
Converter<Request> converter = new RequestConverter(new Persister());
registry.bind(RequestV3_0.class, converter);
registry.bind(RequestV4_0.class, converter);
As you can see I have to register both the RequestVx_0 classes but in reality they have a baseclass which is the one that should be handled. Desirable would be to have
Registry registry = new Registry();
Strategy strategy = new RegistryStrategy(registry);
Serializer outSerializer = new Persister(strategy);
Converter<Request> converter = new RequestConverter(new Persister());
registry.bind(Request.class, converter);
Don't know if this is feasible...
I will take a look at this. Thanks for feedback.