Support Questions
Find answers, ask questions, and share your expertise

How does ".dynamicallyModifiesClasspath" communicates to the framework to update classpath with external paths? Basic search lead to AbstractConfiguredComponent.java which identifies this....

How does ".dynamicallyModifiesClasspath" communicates to the framework to update classpath with external paths? Basic search lead to AbstractConfiguredComponent.java which identifies this and invokes "reload(additionalUrls)". Could not find what this method does?

1 REPLY 1

The framework has a processor node object for each processor on the graph, and the processor node has the actual instance of the processor which was created using the class loader from the given NAR. When a property with dynamicallyModifiesClasspath is changed, the framework calls reload which recreates the underlying processor using a new class loader that contains all of the additional resources + the NAR class loader.

https://github.com/apache/nifi/blob/master/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nif...

; ;