Skip to content

Commit

Permalink
JCLOUDS-40 Replaced incorrect use of @ConfiguresRestClient and delete…
Browse files Browse the repository at this point in the history
…d old rest client modules.
  • Loading branch information
Adrian Cole committed Oct 5, 2014
1 parent d190040 commit 1b2cee0
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 214 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
import org.jclouds.http.annotation.ClientError;
import org.jclouds.http.annotation.Redirection;
import org.jclouds.http.annotation.ServerError;
import org.jclouds.rest.ConfiguresRestClient;
import org.jclouds.rest.ConfiguresHttpApi;
import org.jclouds.rest.config.HttpApiModule;

import com.google.common.base.Function;
Expand All @@ -49,7 +49,7 @@
/**
* Configures the elasticstack connection.
*/
@ConfiguresRestClient
@ConfiguresHttpApi
public class ElasticStackHttpApiModule extends HttpApiModule<ElasticStackApi> {

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
import org.jclouds.openstack.nova.v2_0.handlers.NovaErrorHandler;
import org.jclouds.openstack.v2_0.domain.Extension;
import org.jclouds.openstack.v2_0.functions.PresentWhenExtensionAnnotationNamespaceEqualsAnyNamespaceInExtensionsSet;
import org.jclouds.rest.ConfiguresRestClient;
import org.jclouds.rest.ConfiguresHttpApi;
import org.jclouds.rest.config.HttpApiModule;
import org.jclouds.rest.functions.ImplicitOptionalConverter;

Expand All @@ -47,7 +47,7 @@
* Configures the Nova connection.
*
*/
@ConfiguresRestClient
@ConfiguresHttpApi
public class NovaHttpApiModule extends HttpApiModule<NovaApi> {

public NovaHttpApiModule() {
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@
import org.jclouds.http.handlers.BackoffLimitedRetryHandler;
import org.jclouds.location.suppliers.ImplicitLocationSupplier;
import org.jclouds.location.suppliers.implicit.OnlyLocationOrFirstZone;
import org.jclouds.rest.ConfiguresRestClient;
import org.jclouds.rest.ConfiguresHttpApi;
import org.jclouds.rest.config.HttpApiModule;

import com.google.inject.Scopes;

/**
* Configures the GleSYS connection.
*/
@ConfiguresRestClient
@ConfiguresHttpApi
public class GleSYSHttpApiModule extends HttpApiModule<GleSYSApi> {

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
import org.jclouds.http.annotation.Redirection;
import org.jclouds.http.annotation.ServerError;
import org.jclouds.location.suppliers.ImplicitLocationSupplier;
import org.jclouds.rest.ConfiguresRestClient;
import org.jclouds.rest.ConfiguresHttpApi;
import org.jclouds.rest.config.HttpApiModule;

import com.google.common.base.Supplier;
Expand All @@ -42,7 +42,7 @@
/**
* Configures the GoGrid connection.
*/
@ConfiguresRestClient
@ConfiguresHttpApi
public class GoGridHttpApiModule extends HttpApiModule<GoGridApi> {

@Provides
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import org.jclouds.gogrid.filters.SharedKeyLiteAuthentication;
import org.jclouds.http.HttpRequest;
import org.jclouds.providers.ProviderMetadata;
import org.jclouds.rest.ConfiguresRestClient;
import org.jclouds.rest.ConfiguresHttpApi;
import org.jclouds.rest.internal.BaseAsyncClientTest;
import org.testng.annotations.Test;

Expand All @@ -39,7 +39,7 @@ protected void checkFilters(HttpRequest request) {
assertEquals(request.getFilters().get(0).getClass(), SharedKeyLiteAuthentication.class);
}

@ConfiguresRestClient
@ConfiguresHttpApi
protected static final class TestGoGridHttpApiModule extends GoGridHttpApiModule {
@Override
protected void configure() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import org.jclouds.date.TimeStamp;
import org.jclouds.gogrid.GoGridApi;
import org.jclouds.gogrid.config.GoGridHttpApiModule;
import org.jclouds.rest.ConfiguresRestClient;
import org.jclouds.rest.ConfiguresHttpApi;
import org.jclouds.rest.internal.BaseRestClientExpectTest;

import com.google.common.base.Supplier;
Expand All @@ -31,7 +31,7 @@ public BaseGoGridHttpApiExpectTest() {
provider = "gogrid";
}

@ConfiguresRestClient
@ConfiguresHttpApi
protected static final class TestGoGridHttpApiModule extends GoGridHttpApiModule {

@Override
Expand Down

0 comments on commit 1b2cee0

Please sign in to comment.