summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/openslx/libvirt/domain/device/HostdevAddressableSource.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/openslx/libvirt/domain/device/HostdevAddressableSource.java')
-rw-r--r--src/main/java/org/openslx/libvirt/domain/device/HostdevAddressableSource.java26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/main/java/org/openslx/libvirt/domain/device/HostdevAddressableSource.java b/src/main/java/org/openslx/libvirt/domain/device/HostdevAddressableSource.java
new file mode 100644
index 0000000..9377421
--- /dev/null
+++ b/src/main/java/org/openslx/libvirt/domain/device/HostdevAddressableSource.java
@@ -0,0 +1,26 @@
+package org.openslx.libvirt.domain.device;
+
+/**
+ * Addressable source operations for a hostdev device.
+ *
+ * @author Manuel Bentele
+ * @version 1.0
+ *
+ * @param <T> type of the source.
+ */
+public abstract interface HostdevAddressableSource<T>
+{
+ /**
+ * Returns the source of the source device (on the Libvirt host).
+ *
+ * @return source of the source device (on the Libvirt host).
+ */
+ public T getSource();
+
+ /**
+ * Sets the source for the source device (on the Libvirt host).
+ *
+ * @param source source for the source device (on the Libvirt host).
+ */
+ public void setSource( T source );
+}