Marcel Reutegger created SLING-10624:
----------------------------------------

             Summary: Callback when SlingRepository init fails
                 Key: SLING-10624
                 URL: https://issues.apache.org/jira/browse/SLING-10624
             Project: Sling
          Issue Type: Improvement
          Components: JCR
            Reporter: Marcel Reutegger


{{AbstractSlingRepositoryManager}} initializes the repository asynchronously in 
a separate thread. This makes it difficult for an implementing subclass to 
detect when initialization fails. An implementing class calls {{start()}}, 
which returns almost immediately, while the repository is starting up 
asynchronously. There is no way to detect that {{start()}} was successful.

There should be a callback method that can be overwritten by the implementing 
class. The method would be called when initialization fails, before {{stop()}} 
is finally called.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to