diff options
Diffstat (limited to 'src/main/java/org/openslx/libvirt/domain/device/HostdevAddressableTarget.java')
-rw-r--r-- | src/main/java/org/openslx/libvirt/domain/device/HostdevAddressableTarget.java | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/main/java/org/openslx/libvirt/domain/device/HostdevAddressableTarget.java b/src/main/java/org/openslx/libvirt/domain/device/HostdevAddressableTarget.java new file mode 100644 index 0000000..8a6f9a1 --- /dev/null +++ b/src/main/java/org/openslx/libvirt/domain/device/HostdevAddressableTarget.java @@ -0,0 +1,26 @@ +package org.openslx.libvirt.domain.device; + +/** + * Addressable target operations for a hostdev device. + * + * @author Manuel Bentele + * @version 1.0 + * + * @param <T> type of the target. + */ +public abstract interface HostdevAddressableTarget<T> +{ + /** + * Returns the target of the target device (in the virtual machine). + * + * @return target of the target device (in the virtual machine). + */ + public T getTarget(); + + /** + * Sets the target for the target device (in the virtual machine). + * + * @param target target for the target device (in the virtual machine). + */ + public void setTarget( T target ); +} |