Switch initial config files format to xml and add autodetect adapter for config persi...
[controller.git] / opendaylight / config / config-persister-file-xml-adapter / src / main / java / org / opendaylight / controller / config / persist / storage / file / xml / model / ConfigSnapshot.java
index 41976000ba43d9e0e16ab26f4c2ab0f64020d265..cfc70858c328f42353bc8d502519f46cfd3d4a25 100644 (file)
@@ -15,9 +15,11 @@ import javax.xml.bind.annotation.XmlElementWrapper;
 import javax.xml.bind.annotation.XmlRootElement;
 import java.util.SortedSet;
 
-@XmlRootElement(name = "snapshot")
+@XmlRootElement(name = ConfigSnapshot.SNAPSHOT_ROOT_ELEMENT_NAME)
 public class ConfigSnapshot {
 
+    public static final String SNAPSHOT_ROOT_ELEMENT_NAME = "snapshot";
+
     private String configSnapshot;
     private SortedSet<String> capabilities;