@@ -74,18 +74,28 @@ public class ConfigDepotImpl implements ConfigDepot, ConfigDepotAdmin {
7474 List <ScopedConfigStorage > _scopedStorages ;
7575 Set <Configurable > _configured = Collections .synchronizedSet (new HashSet <Configurable >());
7676
77- HashMap <String , Pair <String , ConfigKey <?>>> _allKeys = new HashMap <String , Pair <String , ConfigKey <?>>>(1007 );
77+ private HashMap <String , Pair <String , ConfigKey <?>>> _allKeys = new HashMap <String , Pair <String , ConfigKey <?>>>(1007 );
7878
7979 HashMap <ConfigKey .Scope , Set <ConfigKey <?>>> _scopeLevelConfigsMap = new HashMap <ConfigKey .Scope , Set <ConfigKey <?>>>();
8080
8181 public ConfigDepotImpl () {
8282 ConfigKey .init (this );
83+ createEmptyScopeLevelMappings ();
84+ }
85+
86+ /**
87+ * Create an empty map of ConfigKey.Scope values, setting the _scopeLevelConfigsMap with the created map
88+ * This map must contain all ConfigKey.Scope values, except the ConfigKey.Scope.Global.
89+ */
90+ protected void createEmptyScopeLevelMappings () {
91+ _scopeLevelConfigsMap = new HashMap <ConfigKey .Scope , Set <ConfigKey <?>>>();
8392 _scopeLevelConfigsMap .put (ConfigKey .Scope .Zone , new HashSet <ConfigKey <?>>());
8493 _scopeLevelConfigsMap .put (ConfigKey .Scope .Cluster , new HashSet <ConfigKey <?>>());
8594 _scopeLevelConfigsMap .put (ConfigKey .Scope .StoragePool , new HashSet <ConfigKey <?>>());
8695 _scopeLevelConfigsMap .put (ConfigKey .Scope .Account , new HashSet <ConfigKey <?>>());
8796 _scopeLevelConfigsMap .put (ConfigKey .Scope .ImageStore , new HashSet <ConfigKey <?>>());
8897 _scopeLevelConfigsMap .put (ConfigKey .Scope .Domain , new HashSet <ConfigKey <?>>());
98+ _scopeLevelConfigsMap .put (ConfigKey .Scope .ManagementServer , new HashSet <ConfigKey <?>>());
8999 }
90100
91101 @ Override
0 commit comments