[
https://issues.apache.org/jira/browse/SLING-10624?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Stefan Egli closed SLING-10624.
-------------------------------
> 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
> Assignee: Stefan Egli
> Priority: Minor
> Fix For: JCR Base 3.1.10
>
> Time Spent: 4h 20m
> Remaining Estimate: 0h
>
> {{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.20.10#820010)