Converter for custom types

Jun 10, 2014 at 4:08 PM
Edited Jun 10, 2014 at 4:20 PM
Just an idea:

In Java-EE / JSF you can use custom converters on query-parameters. This would be a good feature to allow custom objects by passing something as a converter to the registration of the token.

public static IQueryStringToken<Foo> fooId = new ValueTypeToken<Foo>("fooId");
The converter could call the database or a remote service to retrieve the object. This would remove boilerplate code in which the object is looked up.

Did not used your project yet. Just evaluating and had this idea.