Merge "Choice and case resolving in JSON output"
[controller.git] / opendaylight / config / config-persister-api / src / main / java / org / opendaylight / controller / config / persist / api / Persister.java
index 78ce2b9718734dece2dc934befc950b0e09bc54a..1448e553e3017a478ee57a8e833b0ee3a9a63577 100644 (file)
@@ -10,30 +10,18 @@ package org.opendaylight.controller.config.persist.api;
 
 import com.google.common.base.Optional;
 
-import java.io.Closeable;
 import java.io.IOException;
-import java.util.SortedSet;
 
 /**
  * Base interface for persister implementation.
  */
-public interface Persister extends Closeable {
+public interface Persister extends AutoCloseable {
 
     void persistConfig(ConfigSnapshotHolder configSnapshotHolder) throws IOException;
 
     Optional<ConfigSnapshotHolder> loadLastConfig() throws IOException;
 
-    public static interface ConfigSnapshotHolder {
+    @Override
+    void close();
 
-        /**
-         * Get part of get-config document that contains just
-         */
-        String getConfigSnapshot();
-
-
-        /**
-         * Get only required capabilities referenced by the snapshot.
-         */
-        SortedSet<String> getCapabilities();
-    }
 }