NIFI-4864: Improvements to PR #2470

This closes #2581.

Signed-off-by: Bryan Bende <bbende@apache.org>
This commit is contained in:
zenfenan 2018-03-24 10:49:48 +05:30 committed by Bryan Bende
parent 69a564e4c8
commit 3612fbe522
No known key found for this signature in database
GPG Key ID: A0DDA9ED50711C39
1 changed files with 6 additions and 0 deletions

View File

@ -307,6 +307,12 @@ public abstract class AbstractConfiguredComponent implements ConfigurableCompone
*/
@Override
public synchronized void reloadAdditionalResourcesIfNecessary() {
// Components that don't have any PropertyDescriptors marked `dynamicallyModifiesClasspath`
// won't have the fingerprint i.e. will be null, in such cases do nothing
if (additionalResourcesFingerprint == null) {
return;
}
final List<PropertyDescriptor> descriptors = new ArrayList<>(this.getProperties().keySet());
final Set<URL> additionalUrls = this.getAdditionalClasspathResources(descriptors);