sling-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bertrand Delacretaz <>
Subject Re: [DISCUSSION][API][PROPOSAL] Adding Stream<Resource> generator to Sling API
Date Tue, 12 Jun 2018 12:43:56 GMT
On Tue, Jun 12, 2018 at 12:37 PM Julian Sedding <> wrote:
> ...then came
> ResourceUtil.getValueMap(resource), which returns a modifiable empty
> ValueMap even if resource == null. And finally, a lot later,
> resource.getValueMap() was added, because ValueMaps are used a lot
> when dealing with resources...

Indeed, and that's a nice pattern IMO - start without touching the
"sacred" API module, and only if things start being used a lot move
things here.

This helps keep the API small and focused.


View raw message