2 * @author Tomas Olvecky
6 * Copyright (c) 2013 by Cisco Systems, Inc.
9 package org.opendaylight.controller.netconf.persist.impl;
11 import org.opendaylight.controller.config.persist.api.PropertiesProvider;
12 import org.opendaylight.controller.netconf.persist.impl.osgi.PropertiesProviderBaseImpl;
14 public class PropertiesProviderAdapterImpl implements PropertiesProvider {
15 private final PropertiesProviderBaseImpl inner;
16 private final String index;
18 public PropertiesProviderAdapterImpl(PropertiesProviderBaseImpl inner, String index) {
24 public String getProperty(String key) {
25 String fullKey = getFullKeyForReporting(key);
26 return inner.getPropertyWithoutPrefix(fullKey);
29 public String getPrefix() {
30 return inner.getPrefix() + "." + index + ".properties";
34 public String getFullKeyForReporting(String key) {
35 return getPrefix() + "." + key;