[ 
https://issues.apache.org/jira/browse/NIFI-13080?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17872488#comment-17872488
 ] 

Joe Witt commented on NIFI-13080:
---------------------------------

Reviewing the thread on remaining things before offically cutting a 2.0 release 
this one comes back to mind.

Specifically we need to ensure NiFiProperties cannot be used by any extensions. 
 They should not know about nifi properties at all for that matter.

> nifi-properties and nifi-property-utils should not be part of the public api 
> of nifi extensions such as processors, controller services and reporting tasks
> -----------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: NIFI-13080
>                 URL: https://issues.apache.org/jira/browse/NIFI-13080
>             Project: Apache NiFi
>          Issue Type: Task
>            Reporter: Joe Witt
>            Assignee: Joe Witt
>            Priority: Major
>
> After the great refactor of NIFI-12998 a few scenarios emerged that we should 
> resolve.
> The bom/parents for NiFi extensions such as nifi-extension-bundles should 
> enforce that a pom should not have a declared dependency on nifi-properties 
> and nifi-property-utils.
> nifi-property-utils has extensive usage today due to a StringUtils class.  
> The purpose of that StringUtils class seems to be to have a very lightweight 
> copy of things often found in commons-lang3 but when we don't want to pull in 
> that dependency to every module.  It isn't clear how valuable that is at this 
> point and it is worth review.  But either way StringUtils of 
> nifi-property-utils does not seem like it should be a thing or should not be 
> where it is.
> The handful of remaining 'nifi-extension-bundle modules that do use 
> NiFiProperties are extensions which also don't really belong in the 
> nifi-extension-bundle module but instead should be in a 
> 'nifi-framework-extensions' bundle module as these are things which are more 
> like framework extensions that the public/intentional components of 
> processors, controller services, and reporting tasks and these framework 
> focused extensions have different obligations/accesses such as NiFiProperties 
> being totally fair game.  But for a processor to depend on NIFi properties is 
> a 'config/user experience smell'



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to