Issue 382: correct libvirt dependencies

This commit is contained in:
Adrian Cole 2010-10-24 22:58:21 -05:00
parent f5729cfb4e
commit 9d91b1704d
2 changed files with 10 additions and 3 deletions

View File

@ -41,8 +41,14 @@
<dependency> <dependency>
<groupId>org.libvirt</groupId> <groupId>org.libvirt</groupId>
<artifactId>libvirt</artifactId> <artifactId>libvirt</artifactId>
<version>0.4.1</version> <version>0.4.6</version>
</dependency> </dependency>
<dependency>
<groupId>com.sun.jna</groupId>
<artifactId>jna</artifactId>
<version>3.0.9</version>
<scope>provided</scope>
</dependency>
<dependency> <dependency>
<groupId>${project.groupId}</groupId> <groupId>${project.groupId}</groupId>
<artifactId>jclouds-core</artifactId> <artifactId>jclouds-core</artifactId>

View File

@ -14,6 +14,7 @@ import org.jclouds.domain.Credentials;
import org.jclouds.libvirt.Datacenter; import org.jclouds.libvirt.Datacenter;
import org.jclouds.libvirt.Hardware; import org.jclouds.libvirt.Hardware;
import org.jclouds.libvirt.Image; import org.jclouds.libvirt.Image;
import org.libvirt.Connect;
import org.libvirt.Domain; import org.libvirt.Domain;
import org.libvirt.jna.Libvirt; import org.libvirt.jna.Libvirt;
@ -26,10 +27,10 @@ import com.google.common.collect.ImmutableSet;
*/ */
@Singleton @Singleton
public class LibvirtComputeServiceAdapter implements ComputeServiceAdapter<Domain, Hardware, Image, Datacenter> { public class LibvirtComputeServiceAdapter implements ComputeServiceAdapter<Domain, Hardware, Image, Datacenter> {
private final Libvirt client; private final Connect client;
@Inject @Inject
public LibvirtComputeServiceAdapter(Libvirt client) { public LibvirtComputeServiceAdapter(Connect client) {
this.client = checkNotNull(client, "client"); this.client = checkNotNull(client, "client");
} }