2014-03-14 10:58 GMT+01:00 Bertrand Delacretaz <[email protected]>:

> On Fri, Mar 14, 2014 at 9:19 AM, Carsten Ziegeler <[email protected]>
> wrote:
> > ...The simplest solution would be to enhance ResourceUtil.getValueMap()
> to
> > return a wrapper of the value map which allows deep reads...
>
> Sounds reasonable, but will that also work if I just call
> Resource.adaptTo(ValueMap.class)?
> Or do we need  to fix all Resource implementations to achieve that?
>
>
That would need a change in the API contract :) and all implementations
need to be fixed as well.

The contract of the returned ValueMap from a resource is to just provide
access to it's properties.
Just for rendering code, it is quiet handy to have deep reads - and
rendering code is using ResourceUtil.getValueMap().

Regards
Carsten

-- 
Carsten Ziegeler
[email protected]

Reply via email to