You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Andy LoPresto (Jira)" <ji...@apache.org> on 2020/02/10 23:44:00 UTC
[jira] [Created] (NIFI-7130) Change FlowController and
StandardFlowService to use interfaces and allow injection
Andy LoPresto created NIFI-7130:
-----------------------------------
Summary: Change FlowController and StandardFlowService to use interfaces and allow injection
Key: NIFI-7130
URL: https://issues.apache.org/jira/browse/NIFI-7130
Project: Apache NiFi
Issue Type: Improvement
Components: Core Framework
Affects Versions: 1.11.1
Reporter: Andy LoPresto
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.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)