Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'containers/org.eclipse.linuxtools.docker.core/src/org/eclipse/linuxtools/docker/core/IDockerConnectionStorageManager.java')
-rw-r--r--containers/org.eclipse.linuxtools.docker.core/src/org/eclipse/linuxtools/docker/core/IDockerConnectionStorageManager.java36
1 files changed, 36 insertions, 0 deletions
diff --git a/containers/org.eclipse.linuxtools.docker.core/src/org/eclipse/linuxtools/docker/core/IDockerConnectionStorageManager.java b/containers/org.eclipse.linuxtools.docker.core/src/org/eclipse/linuxtools/docker/core/IDockerConnectionStorageManager.java
new file mode 100644
index 0000000000..3af0e8d70a
--- /dev/null
+++ b/containers/org.eclipse.linuxtools.docker.core/src/org/eclipse/linuxtools/docker/core/IDockerConnectionStorageManager.java
@@ -0,0 +1,36 @@
+/*******************************************************************************
+ * Copyright (c) 2015 Red Hat.
+ * 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, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat - Initial Contribution
+ *******************************************************************************/
+
+package org.eclipse.linuxtools.docker.core;
+
+import java.util.List;
+
+/**
+ * Manager that takes care of loading and saving connections settings in a file.
+ */
+public interface IDockerConnectionStorageManager {
+
+ /**
+ * Loads connections from the underlying file
+ *
+ * @return {@link List} of {@link IDockerConnection}
+ */
+ public List<IDockerConnection> loadConnections();
+
+ /**
+ * Saves the given {@link List} of {@link IDockerConnection} into a file
+ *
+ * @param connections
+ * the connections to save
+ */
+ public void saveConnections(List<IDockerConnection> connections);
+
+}

Back to the top