diff options
Diffstat (limited to 'common-app-api/src/main/java/org/openecomp/sdc/fe/config/ConfigurationManager.java')
-rw-r--r-- | common-app-api/src/main/java/org/openecomp/sdc/fe/config/ConfigurationManager.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/common-app-api/src/main/java/org/openecomp/sdc/fe/config/ConfigurationManager.java b/common-app-api/src/main/java/org/openecomp/sdc/fe/config/ConfigurationManager.java index aafbdc7aa0..5aa2d1f79d 100644 --- a/common-app-api/src/main/java/org/openecomp/sdc/fe/config/ConfigurationManager.java +++ b/common-app-api/src/main/java/org/openecomp/sdc/fe/config/ConfigurationManager.java @@ -54,6 +54,7 @@ public class ConfigurationManager implements FileChangeCallback, IEcompConfigura loadConfigurationClass(RestConfigurationInfo.class); loadConfigurationClass(EcompErrorConfiguration.class); loadConfigurationClass(PluginsConfiguration.class); + loadConfigurationClass(WorkspaceConfiguration.class); } @@ -99,6 +100,15 @@ public class ConfigurationManager implements FileChangeCallback, IEcompConfigura return (PluginsConfiguration) configurations.get(getKey(PluginsConfiguration.class)); } + + public WorkspaceConfiguration getWorkspaceConfiguration() { + + logger.info("requested plugins configuration and got this:{}", configurations.get(getKey(WorkspaceConfiguration.class))); + + return (WorkspaceConfiguration) configurations.get(getKey(WorkspaceConfiguration.class)); + } + + public Configuration getConfigurationAndWatch(ConfigurationListener configurationListener) { if (configurationListener != null) { |