From 9d91b1704d9a7c10b2e2b547e907ac987583ff10 Mon Sep 17 00:00:00 2001 From: Adrian Cole Date: Sun, 24 Oct 2010 22:58:21 -0500 Subject: [PATCH] Issue 382: correct libvirt dependencies --- sandbox/libvirt/pom.xml | 8 +++++++- .../compute/strategy/LibvirtComputeServiceAdapter.java | 5 +++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/sandbox/libvirt/pom.xml b/sandbox/libvirt/pom.xml index ea5ff6124d..4d1b3d36c0 100644 --- a/sandbox/libvirt/pom.xml +++ b/sandbox/libvirt/pom.xml @@ -41,8 +41,14 @@ org.libvirt libvirt - 0.4.1 + 0.4.6 + + com.sun.jna + jna + 3.0.9 + provided + ${project.groupId} jclouds-core diff --git a/sandbox/libvirt/src/main/java/org/jclouds/libvirt/compute/strategy/LibvirtComputeServiceAdapter.java b/sandbox/libvirt/src/main/java/org/jclouds/libvirt/compute/strategy/LibvirtComputeServiceAdapter.java index 7b818bc958..1a2c9049eb 100644 --- a/sandbox/libvirt/src/main/java/org/jclouds/libvirt/compute/strategy/LibvirtComputeServiceAdapter.java +++ b/sandbox/libvirt/src/main/java/org/jclouds/libvirt/compute/strategy/LibvirtComputeServiceAdapter.java @@ -14,6 +14,7 @@ import org.jclouds.domain.Credentials; import org.jclouds.libvirt.Datacenter; import org.jclouds.libvirt.Hardware; import org.jclouds.libvirt.Image; +import org.libvirt.Connect; import org.libvirt.Domain; import org.libvirt.jna.Libvirt; @@ -26,10 +27,10 @@ import com.google.common.collect.ImmutableSet; */ @Singleton public class LibvirtComputeServiceAdapter implements ComputeServiceAdapter { - private final Libvirt client; + private final Connect client; @Inject - public LibvirtComputeServiceAdapter(Libvirt client) { + public LibvirtComputeServiceAdapter(Connect client) { this.client = checkNotNull(client, "client"); }