Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-10624

Callback when SlingRepository init fails

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: JCR Base 3.1.10
    • Component/s: JCR
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              stefanegli Stefan Egli
              Reporter:
              mreutegg Marcel Reutegger
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 4h 20m
                4h 20m