From ba40e8a7b577ce6fc88c51a1783ec8f912491469 Mon Sep 17 00:00:00 2001 From: Adrian Cole Date: Thu, 7 Apr 2011 12:23:57 -0700 Subject: [PATCH] Issue 516:add ning payload to enterprise configuration --- drivers/enterprise/pom.xml | 11 +++----- .../config/EnterpriseConfigurationModule.java | 2 ++ providers/aws-s3/pom.xml | 26 +++---------------- .../integration/AWSS3TestInitializer.java | 5 ++-- 4 files changed, 12 insertions(+), 32 deletions(-) diff --git a/drivers/enterprise/pom.xml b/drivers/enterprise/pom.xml index f81b2fff6d..62fb4f0417 100644 --- a/drivers/enterprise/pom.xml +++ b/drivers/enterprise/pom.xml @@ -64,20 +64,15 @@ ${project.version} - joda-time - joda-time - 1.6.2 + ${project.groupId} + jclouds-netty + ${project.version} ${project.groupId} jclouds-bouncycastle ${project.version} - - org.bouncycastle - bcprov-jdk15 - 1.44 - org.mortbay.jetty jetty-ssl diff --git a/drivers/enterprise/src/main/java/org/jclouds/enterprise/config/EnterpriseConfigurationModule.java b/drivers/enterprise/src/main/java/org/jclouds/enterprise/config/EnterpriseConfigurationModule.java index d7c4e31cc4..9b8d897182 100755 --- a/drivers/enterprise/src/main/java/org/jclouds/enterprise/config/EnterpriseConfigurationModule.java +++ b/drivers/enterprise/src/main/java/org/jclouds/enterprise/config/EnterpriseConfigurationModule.java @@ -25,6 +25,7 @@ import org.jclouds.concurrent.config.ConfiguresExecutorService; import org.jclouds.concurrent.config.ExecutorServiceModule; import org.jclouds.date.joda.config.JodaDateServiceModule; import org.jclouds.encryption.bouncycastle.config.BouncyCastleCryptoModule; +import org.jclouds.netty.config.NettyPayloadModule; /** * Configures Enterprise-grade components @@ -47,6 +48,7 @@ public class EnterpriseConfigurationModule extends ExecutorServiceModule { protected void configure() { install(new BouncyCastleCryptoModule()); install(new JodaDateServiceModule()); + install(new NettyPayloadModule()); } } diff --git a/providers/aws-s3/pom.xml b/providers/aws-s3/pom.xml index 48048825a6..a46eb1c36f 100644 --- a/providers/aws-s3/pom.xml +++ b/providers/aws-s3/pom.xml @@ -85,40 +85,22 @@ test-jar test - - org.jclouds.driver - jclouds-apachehc - ${project.version} - test - - - org.apache.httpcomponents - httpclient - 4.1 - test - org.jclouds.driver jclouds-log4j ${project.version} test - - log4j - log4j - 1.2.16 - test - org.jclouds.driver - jclouds-netty + jclouds-apachehc ${project.version} test - org.jboss.netty - netty - 3.2.4.Final + org.jclouds.driver + jclouds-enterprise + ${project.version} test diff --git a/providers/aws-s3/src/test/java/org/jclouds/aws/s3/blobstore/integration/AWSS3TestInitializer.java b/providers/aws-s3/src/test/java/org/jclouds/aws/s3/blobstore/integration/AWSS3TestInitializer.java index 9f37f754c3..e3a976edbd 100644 --- a/providers/aws-s3/src/test/java/org/jclouds/aws/s3/blobstore/integration/AWSS3TestInitializer.java +++ b/providers/aws-s3/src/test/java/org/jclouds/aws/s3/blobstore/integration/AWSS3TestInitializer.java @@ -25,8 +25,8 @@ import org.jclouds.blobstore.BlobStoreContext; import org.jclouds.blobstore.BlobStoreContextFactory; import org.jclouds.blobstore.integration.TransientBlobStoreTestInitializer; import org.jclouds.blobstore.integration.internal.BaseBlobStoreIntegrationTest; +import org.jclouds.enterprise.config.EnterpriseConfigurationModule; import org.jclouds.logging.log4j.config.Log4JLoggingModule; -import org.jclouds.netty.config.NettyPayloadModule; import com.google.common.collect.ImmutableSet; import com.google.inject.Module; @@ -46,7 +46,8 @@ public class AWSS3TestInitializer extends TransientBlobStoreTestInitializer { protected BlobStoreContext createLiveContext(Module configurationModule, String endpoint, String apiversion, String app, String identity, String credential) throws IOException { return new BlobStoreContextFactory().createContext(provider, ImmutableSet.of(configurationModule, - new Log4JLoggingModule(), new NettyPayloadModule()), setupProperties(endpoint, apiversion, identity, credential)); + new Log4JLoggingModule(), new EnterpriseConfigurationModule()), setupProperties(endpoint, apiversion, + identity, credential)); } }