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

Otto Fowler edited comment on NIFI-5673 at 10/9/18 8:01 PM:
------------------------------------------------------------

I am sure you already know how you are going to do this, but in my 
[bundles-lib]([https://github.com/palindromicity/bundles)] I support this for 
manual cases ( like installing from a ui ).

The way I did it was to make the InitialContext classes represent an 
operational context ( IE> I am building the context on demand for a whole 
directory like at start up or I am building it for a single NAR ), and to 
support merging contexts.

I look forward to seeing what you come up with.

[https://github.com/palindromicity/bundles/blob/master/src/test/java/com/github/palindromicity/bundles/BundleClassLoadersContextTest.java]

 

[https://github.com/palindromicity/bundles/blob/master/src/test/java/com/github/palindromicity/bundles/ExtensionManagerContextTest.java]

 

 

[https://github.com/palindromicity/bundles/blob/0660b297a8da9942b2aea9c001dc69fa552f4367/src/main/java/com/github/palindromicity/bundles/BundleClassLoaders.java#L160]

 

https://github.com/palindromicity/bundles/blob/0660b297a8da9942b2aea9c001dc69fa552f4367/src/main/java/com/github/palindromicity/bundles/ExtensionManager.java#L397

 


was (Author: ottobackwards):
I am sure you already know how you are going to do this, but in my 
[bundles-lib]([https://github.com/palindromicity/bundles)] I support this for 
manual cases ( like installing from a ui ).

The way I did it was to make the InitialContext classes represent an 
operational context ( IE> I am building the context on demand for a whole 
directory like at start up or I am building it for a single NAR ), and to 
support merging contexts.

I look forward to seeing what you come up with.

[https://github.com/palindromicity/bundles/blob/master/src/test/java/com/github/palindromicity/bundles/BundleClassLoadersContextTest.java]

 

https://github.com/palindromicity/bundles/blob/master/src/test/java/com/github/palindromicity/bundles/ExtensionManagerContextTest.java

 

> Support auto loading of new NARs
> --------------------------------
>
>                 Key: NIFI-5673
>                 URL: https://issues.apache.org/jira/browse/NIFI-5673
>             Project: Apache NiFi
>          Issue Type: Improvement
>            Reporter: Bryan Bende
>            Assignee: Bryan Bende
>            Priority: Minor
>
> We should be able to detect when new NARs have been added to any of the NAR 
> directories and automatically load them and make the components available for 
> use without restarting the whole NiFi instance.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to