On Aug 31, 2014, at 10:50 AM, Adrian Crum <[email protected]>
wrote:
> However, it will open up the possibility to improve the API. For example,
> instead of this service implementation:
>
> public static Map<String, Object> myService(DispatchContext dctx, Map<String,
> Object> context) {
> Locale locale = (Locale) context.get("locale");
> ...
>
> we could have:
>
> public static Map<String, Object> myService(DispatchContext dctx) {
> Locale locale = dctx.getParameter("locale");
> ...
DispatchContext and the Map with input parameters have a completely different
purpose and I don't think this would be an "improvement" per se. We will have
to revisit this conversation at some point to be sure we are in the same page.
Jacopo