mirror of https://github.com/apache/jclouds.git
Issue 382: correct libvirt dependencies
This commit is contained in:
parent
f5729cfb4e
commit
9d91b1704d
|
@ -41,8 +41,14 @@
|
|||
<dependency>
|
||||
<groupId>org.libvirt</groupId>
|
||||
<artifactId>libvirt</artifactId>
|
||||
<version>0.4.1</version>
|
||||
<version>0.4.6</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.sun.jna</groupId>
|
||||
<artifactId>jna</artifactId>
|
||||
<version>3.0.9</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>${project.groupId}</groupId>
|
||||
<artifactId>jclouds-core</artifactId>
|
||||
|
|
|
@ -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<Domain, Hardware, Image, Datacenter> {
|
||||
private final Libvirt client;
|
||||
private final Connect client;
|
||||
|
||||
@Inject
|
||||
public LibvirtComputeServiceAdapter(Libvirt client) {
|
||||
public LibvirtComputeServiceAdapter(Connect client) {
|
||||
this.client = checkNotNull(client, "client");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue