aesteve / nubes

Annotation layer on top of Vert.x 3
Apache License 2.0
121 stars 35 forks source link

Parameters injection #11

Closed aesteve closed 9 years ago

aesteve commented 9 years ago

For now, we only have the RoutingContext as parameter but, an interesting feature would be to outbox and convert parameters for the end-users and inject it to the method.

Like : public void search(RoutingContext context, SearchCriteria criteria) where criteria is instanciated from request parameters.

First implementation possible, let user define their class by implementing an interface : fromRequestParams(MultiMap ... blah)` then provide some utility methods upon that.

aesteve commented 9 years ago

Standard parameters are injected with QueryParam, PathParam

Next step : marshall requests body as a "backing object" with a user provided marshaller (and defaults implementations : Boon for JSON, manually for XML ?)

aesteve commented 9 years ago

TODO :

aesteve commented 9 years ago

Done :