dprovider.addProvider(provider);
}
dprovider.init(this, context);
clusterConfigProvider = dprovider;
} catch (Exception e) {
throw new FloodlightModuleException("Could not instantiate config" +
"providers " + Arrays.toString(configProviders), e);
}
String manualStoreString = config.get("manualStores");
if (manualStoreString != null) {
List<String> manualStores = null;
try {
manualStores =
(new ObjectMapper()).readValue(manualStoreString,
new TypeReference<List<String>>() {});
} catch (Exception e) {
throw new FloodlightModuleException("Failed to parse sync " +
"manager manual stores: " + manualStoreString, e);
}
for (String s : manualStores) {
registerStore(s, Scope.GLOBAL);
}