Bertrand Delacretaz wrote
> Hi,
> 
> On Thu, May 11, 2017 at 9:39 AM, Carsten Ziegeler <[email protected]> 
> wrote:
>> ...Service users are a very low level
>> configuration of the data store and we could assume that this is
>> correctly configured - as well as the mapping...
> 
> I think the main goal of ServiceUserMapped is to have components wait
> at startup until the mappings (+ service users but that doesn't work)
> are available.
> 
> So "configuration is correct" is just part of the deal.
> 
> How about having the code that registers the ServiceUserMapped markers
> wait for the SlingRepository service?

I don't think this is necessary as the code using a service user either
depends on the resource resolver factory or the sling repository
service. Otherwise it can't use the service user anyway.

Carsten

> 
> If service users are registered via repoinit, waiting for
> SlingRepository waits for all of them, assuming the configuration is
> correct. And if not those services will generally fail loudly.
> 
> -Bertrand
> 


 

-- 
Carsten Ziegeler
Adobe Research Switzerland
[email protected]

Reply via email to