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

ASF subversion and git services commented on NIFI-13813:
--------------------------------------------------------

Commit 0b85dd696eb9b8f5e97ff1d0383249cbb23cf872 in nifi's branch 
refs/heads/main from David Handermann
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=0b85dd696e ]

NIFI-13813 Refactored NiFi Runtime Property Loading (#9322)

- Refactored NiFi Runtime class to read application properties for NAR loading 
and then load application properties using Framework NAR
- Removed bootstrap Class Loader from runtime initialization
- Removed nifi-properties-loader from nifi-bootstrap

> Refactor NiFi Runtime Initialization and Property Loading
> ---------------------------------------------------------
>
>                 Key: NIFI-13813
>                 URL: https://issues.apache.org/jira/browse/NIFI-13813
>             Project: Apache NiFi
>          Issue Type: Improvement
>          Components: Core Framework
>            Reporter: David Handermann
>            Assignee: David Handermann
>            Priority: Major
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> The {{org.apache.nifi.NiFi}} class for launching the system uses the 
> bootstrap Class Loader and reflection to load {{NiFiProperties}}, which 
> introduces a tight and unclear coupling between the bootstrap process and the 
> runtime application. With recent refactoring of {{nifi-bootstrap}}, this 
> dependency on {{nifi-properties-loader}} in the bootstrap library directory 
> should not be required.
> Instead, the runtime {{NiFi}} class can read the initial application 
> properties for loading NAR modules, and then use the Framework NAR, which 
> includes {{nifi-properties-loader}} to run standard loading operations. This 
> approach removes the unclear coupling to the bootstrap class loader.
> In addition to these changes, the structure of the {{NiFi}} class should be 
> refactored so that specific operations like initializing the JUL to SLF4J 
> Bridge and setting the uncaught exception handler occur before other 
> operations.



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

Reply via email to