sounds good to me, maybe an addition to the Sling API? there are already "helper" implementations like SyntheticResource. would be good to review the API of the new feature in a PR first.
stefan >-----Original Message----- >From: Nicolas Peltier <[email protected]> >Sent: Tuesday, February 25, 2020 10:32 AM >To: Sling Developers List <[email protected]> >Subject: [proposal] fallback valuemap > >Hi, > >i'd like to propose a contribution of a fallback valuemap which is a very >simple implementation of the ValueMap interface based on an ordered list of >resources, getting value of first one, if no value, second, etc... > >We use that internally for now for simplifying code like that one [0] for >the "end" developer to have a single entry point à la context aware >configuration manager (actually Ca config resource is one of above >resources). > >if no veto for this, where could i put it? > >Cheers, >Nicolas > >[0] >https://github.com/adobe/aem-core-wcm- >components/blob/master/bundles/core/src/main/java/com/adobe/cq/wcm/core/com >ponents/internal/models/v2/ImageImpl.java#L65
