Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-22547

Reduce complexity of ComponentManager

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 9.2
    • Fix Version/s: QualifiedToSchedule
    • Component/s: Runtime

      Description

      Since introduction to Runtime v2, ComponentManager has a lot of new methods, some of them are a bit to complex like reset for instance.
      Generally, this interface (which is about 500 lines) is too complex. We want to remove/deprecate some of its method, and rework others.

      For instance, what we can do:

      • remove reset method or apply another mechanism, because reset stop components, but don't start them at then end.
      • addComponentListener and removeComponentListener methods seem not used, we can probably deprecate/remove them (same thing for ComponentListener)
      • unregisterByLocation and hasComponentFromLocation has been deprecated along with NXP-19326 -> fix tests which use them
      • extract Listener and LifeCycleHandler from this class

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: