/*
- * Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved.
+ * Copyright (c) 2015, 2017 Cisco Systems, Inc. and others. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
@Override
public void executeConfiguration(String module, String instance, Map<String, AttributeConfigElement> configuration,
- ConfigTransactionClient ta, ServiceRegistryWrapper services) throws
- ConfigHandlingException {
- if(configuration != null && !configuration.isEmpty()) {
+ ConfigTransactionClient ta, ServiceRegistryWrapper services) throws ConfigHandlingException {
+ if (configuration != null && !configuration.isEmpty()) {
for (Map.Entry<String, AttributeConfigElement> attrEntry : configuration.entrySet()) {
- if(attrEntry.getValue().getEditStrategy().isPresent()) {
- final Map<String, AttributeConfigElement> partialConfig =
- Collections.singletonMap(attrEntry.getKey(), attrEntry.getValue());
- attrEntry.getValue().getEditStrategy().get().getFittingStrategy()
- .executeConfiguration(module, instance, partialConfig, ta, services);
+ if (attrEntry.getValue().getEditStrategy().isPresent()) {
+ final Map<String, AttributeConfigElement> partialConfig = Collections
+ .singletonMap(attrEntry.getKey(), attrEntry.getValue());
+ attrEntry.getValue().getEditStrategy().get().getFittingStrategy().executeConfiguration(module,
+ instance, partialConfig, ta, services);
} else {
LOG.debug("Skipping configuration element for {}:{}:{}", module, instance, attrEntry.getKey());
}
LOG.debug("Skipping configuration element for {}:{}", module, instance);
}
}
-
}