Skip to content

Commit

Permalink
[FELIX-5832] Only handle ConfigurationEvents for config objects manag…
Browse files Browse the repository at this point in the history
…ed by us

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1829585 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
gnodet committed Apr 19, 2018
1 parent 1eb4721 commit cac1c37
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public void doConfigurationEvent(ConfigurationEvent configurationEvent)
Dictionary dict = config.getProperties();
String fileName = dict != null ? (String) dict.get( DirectoryWatcher.FILENAME ) : null;
File file = fileName != null ? fromConfigKey(fileName) : null;
if( file != null && file.isFile() ) {
if( file != null && file.isFile() && canHandle( file ) ) {
pidToFile.put(config.getPid(), fileName);
TypedProperties props = new TypedProperties( bundleSubstitution() );
try (Reader r = new InputStreamReader(new FileInputStream(file), encoding()))
Expand Down

0 comments on commit cac1c37

Please sign in to comment.