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

Introduce generic discovery.commons.ViewStateManager sharable for impls

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • Discovery Commons 1.0.0
    • Extensions
    • None

    Description

      With multiple discovery implementations existing/upcoming it starts to become valuable to share code that can be shared. And with the introduction of discovery.commons we have a nice place for this.

      As a first thing, I propose to introduce a discovery.commons.ViewStateManager (the name can be changed if wished of course): this one is capable of managing a number of TopologyChangeListeners, can be in deactivated/activated state and can react on handleChanging and handleNewView events and translates all of those to correct events that it sends to the registered listeners accordingly.

      This also takes into account the fact that the TOPOLOGY_INIT should be sent only when the first valid view is available - which is flagged to ViewStateManager via handleNewView.

      Attachments

        1. SLING-4685.patch
          32 kB
          Stefan Egli

        Issue Links

          Activity

            People

              stefanegli Stefan Egli
              stefanegli Stefan Egli
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: