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

Allow adding CommitHooks and EditorProviders dynamically from bundles

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • Oak
    • None
    • Patch

    Description

      Currently, OakSlingRepositoryManager uses a hard-coded list of CommitHook and EditorProvider to be used by the Oak repository. This means that other than building a patched version of OakSlingRepositoryManager there's no way to include a new commit observer. Ideally, a single pseudo-CommitHook and pseudo-EditorProvider should be handled to Oak, and these should just dynamically aggregate all theĀ CommitHook andĀ EditorProvider instances registered in the Whiteboard.

      All the currently hardcoded components are already available in the whiteboard, so no functionality will be lost, but this change will automatically enable support for mix:atomicCounter via the AtomicCounterEditorProvider that's not used at the moment.

      The old behavior should still be available via a new configuration, OakSlingRepositoryManagerConfiguration#dynamic_components.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              sdumitriu Sergiu Dumitriu
              Votes:
              0 Vote for this issue
              Watchers:
              5 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 - 1h 20m
                  1h 20m