Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-7130

Change FlowController and StandardFlowService to use interfaces and allow injection

    XMLWordPrintableJSON

Details

    Description

      The FlowController and StandardFlowService classes are critical components in the NiFi controller which require a number of collaborator services but create these classes internally and do not allow for dependency injection or inversion of control. This makes them nearly impossible to coherently unit test, and they are very brittle and tightly coupled to specific implementations.

      Introducing interfaces and allowing for dependency injection would greatly improve the testability and composition of these classes.

      Attachments

        Activity

          People

            Unassigned Unassigned
            alopresto Andy LoPresto
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: