Christian Englert created NIFIREG-394:
-----------------------------------------

             Summary: Extension's onConfigured should be called with the same 
ClassLoader
                 Key: NIFIREG-394
                 URL: https://issues.apache.org/jira/browse/NIFIREG-394
             Project: NiFi Registry
          Issue Type: Improvement
            Reporter: Christian Englert


Extensions trying to create instances during the onConfigured call can have 
classloader exceptions.

AuthorizerFactory for example is creating an extension classloader to create 
the instance of the extension, then using another classloader to call 
.onConfigured

In case the extension needs the ConfigurationContext in order to be able to 
create instances of Classes where the dependencies are not included in the 
classloader context used to call .onConfirued() this will lead to problems.

Thus, I'd suggest .onConfigured should be called with the same classloader



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to