From 3e51ff183cc10b3c6da24adad5811ed2e057943d Mon Sep 17 00:00:00 2001 From: Everett Toews Date: Mon, 18 Feb 2013 16:24:13 -0600 Subject: [PATCH] Fixed inheritance hierarchy for Swift and Cloud Files to avoid problems when using BlobStore. --- .../java/org/jclouds/cloudfiles/CloudFilesAsyncClient.java | 4 ++-- .../main/java/org/jclouds/cloudfiles/CloudFilesClient.java | 5 +++-- .../jclouds/openstack/swift/SwiftKeystoneAsyncClient.java | 2 +- .../org/jclouds/openstack/swift/SwiftKeystoneClient.java | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/apis/cloudfiles/src/main/java/org/jclouds/cloudfiles/CloudFilesAsyncClient.java b/apis/cloudfiles/src/main/java/org/jclouds/cloudfiles/CloudFilesAsyncClient.java index 6e3e2e976b..c9cf47fe3b 100644 --- a/apis/cloudfiles/src/main/java/org/jclouds/cloudfiles/CloudFilesAsyncClient.java +++ b/apis/cloudfiles/src/main/java/org/jclouds/cloudfiles/CloudFilesAsyncClient.java @@ -42,8 +42,8 @@ import org.jclouds.cloudfiles.functions.ParseContainerCDNMetadataFromHeaders; import org.jclouds.cloudfiles.options.ListCdnContainerOptions; import org.jclouds.cloudfiles.reference.CloudFilesHeaders; import org.jclouds.openstack.filters.AuthenticateRequest; -import org.jclouds.openstack.swift.CommonSwiftAsyncClient; import org.jclouds.openstack.swift.Storage; +import org.jclouds.openstack.swift.SwiftAsyncClient; import org.jclouds.rest.annotations.BinderParam; import org.jclouds.rest.annotations.Endpoint; import org.jclouds.rest.annotations.Fallback; @@ -67,7 +67,7 @@ import com.google.common.util.concurrent.ListenableFuture; */ @RequestFilters(AuthenticateRequest.class) @Endpoint(Storage.class) -public interface CloudFilesAsyncClient extends CommonSwiftAsyncClient { +public interface CloudFilesAsyncClient extends SwiftAsyncClient { /** * @see CloudFilesClient#listCDNContainers diff --git a/apis/cloudfiles/src/main/java/org/jclouds/cloudfiles/CloudFilesClient.java b/apis/cloudfiles/src/main/java/org/jclouds/cloudfiles/CloudFilesClient.java index 933d3ea969..075cfd0eed 100644 --- a/apis/cloudfiles/src/main/java/org/jclouds/cloudfiles/CloudFilesClient.java +++ b/apis/cloudfiles/src/main/java/org/jclouds/cloudfiles/CloudFilesClient.java @@ -20,9 +20,10 @@ package org.jclouds.cloudfiles; import java.net.URI; import java.util.Set; + import org.jclouds.cloudfiles.domain.ContainerCDNMetadata; import org.jclouds.cloudfiles.options.ListCdnContainerOptions; -import org.jclouds.openstack.swift.CommonSwiftClient; +import org.jclouds.openstack.swift.SwiftClient; /** * Provides access to Cloud Files via their REST API. @@ -30,7 +31,7 @@ import org.jclouds.openstack.swift.CommonSwiftClient; * @author Adrian Cole * @see Cloud Files */ -public interface CloudFilesClient extends CommonSwiftClient { +public interface CloudFilesClient extends SwiftClient { /** * Retrieve a list of existing CDN-enabled containers. diff --git a/apis/swift/src/main/java/org/jclouds/openstack/swift/SwiftKeystoneAsyncClient.java b/apis/swift/src/main/java/org/jclouds/openstack/swift/SwiftKeystoneAsyncClient.java index 65304a5615..cd89cc4bb2 100644 --- a/apis/swift/src/main/java/org/jclouds/openstack/swift/SwiftKeystoneAsyncClient.java +++ b/apis/swift/src/main/java/org/jclouds/openstack/swift/SwiftKeystoneAsyncClient.java @@ -29,6 +29,6 @@ import org.jclouds.rest.annotations.RequestFilters; */ @RequestFilters(AuthenticateRequest.class) @Endpoint(Storage.class) -public interface SwiftKeystoneAsyncClient extends CommonSwiftAsyncClient { +public interface SwiftKeystoneAsyncClient extends SwiftAsyncClient { } diff --git a/apis/swift/src/main/java/org/jclouds/openstack/swift/SwiftKeystoneClient.java b/apis/swift/src/main/java/org/jclouds/openstack/swift/SwiftKeystoneClient.java index de06bfa214..aef74014dd 100644 --- a/apis/swift/src/main/java/org/jclouds/openstack/swift/SwiftKeystoneClient.java +++ b/apis/swift/src/main/java/org/jclouds/openstack/swift/SwiftKeystoneClient.java @@ -23,6 +23,6 @@ package org.jclouds.openstack.swift; * * @author Adrian Cole */ -public interface SwiftKeystoneClient extends CommonSwiftClient { +public interface SwiftKeystoneClient extends SwiftClient { }