this.moduleMap = Collections.unmodifiableMap(moduleMap);
}
- public YangStoreSnapshotImpl(YangStoreSnapshotImpl yangStoreSnapshot) {
- this.moduleMXBeanEntryMap = yangStoreSnapshot.moduleMXBeanEntryMap;
- this.moduleMap = yangStoreSnapshot.moduleMap;
+ public YangStoreSnapshotImpl(YangStoreSnapshot yangStoreSnapshot) {
+ this.moduleMXBeanEntryMap = yangStoreSnapshot.getModuleMXBeanEntryMap();
+ this.moduleMap = yangStoreSnapshot.getModuleMap();
}
+ /**
+ * @return all loaded config modules. Key of outer map is namespace of yang file.
+ * Key of inner map is name of module entry. Value is module entry.
+ */
@Override
public Map<String, Map<String, ModuleMXBeanEntry>> getModuleMXBeanEntryMap() {
return moduleMXBeanEntryMap;