mirror of https://github.com/apache/jclouds.git
removed httpnio from Enterprise config and fixed null logger
git-svn-id: http://jclouds.googlecode.com/svn/trunk@2639 3d8758e0-26b5-11de-8745-db77d3ebf521
This commit is contained in:
parent
7467011318
commit
0373e508ec
|
@ -28,11 +28,20 @@ import org.jclouds.logging.NullLogger;
|
|||
*
|
||||
*/
|
||||
public class NullLoggingModule extends LoggingModule {
|
||||
public Logger.LoggerFactory createLoggerFactory() {
|
||||
return new Logger.LoggerFactory() {
|
||||
public Logger getLogger(String category) {
|
||||
return Logger.NULL;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
public Logger.LoggerFactory createLoggerFactory() {
|
||||
return new Logger.LoggerFactory() {
|
||||
public Logger getLogger(String category) {
|
||||
return Logger.NULL;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* note that we override, as if we are not logging, there's no use in the overhead of listening
|
||||
* for loggers
|
||||
*/
|
||||
@Override
|
||||
protected void configure() {
|
||||
}
|
||||
}
|
||||
|
|
|
@ -42,11 +42,13 @@
|
|||
<artifactId>jclouds-bouncycastle</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<!-- not reliable enough yet
|
||||
<dependency>
|
||||
<groupId>${project.groupId}</groupId>
|
||||
<artifactId>jclouds-httpnio</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
-->
|
||||
</dependencies>
|
||||
|
||||
</project>
|
||||
|
|
|
@ -25,8 +25,6 @@ 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.BouncyCastleEncryptionServiceModule;
|
||||
import org.jclouds.http.config.ConfiguresHttpCommandExecutorService;
|
||||
import org.jclouds.http.httpnio.config.NioTransformingHttpCommandExecutorServiceModule;
|
||||
|
||||
/**
|
||||
* Configures Enterprise-grade components
|
||||
|
@ -34,7 +32,6 @@ import org.jclouds.http.httpnio.config.NioTransformingHttpCommandExecutorService
|
|||
* @author Adrian Cole
|
||||
*
|
||||
*/
|
||||
@ConfiguresHttpCommandExecutorService
|
||||
@ConfiguresExecutorService
|
||||
public class EnterpriseConfigurationModule extends ExecutorServiceModule {
|
||||
|
||||
|
@ -51,7 +48,6 @@ public class EnterpriseConfigurationModule extends ExecutorServiceModule {
|
|||
super.configure();
|
||||
install(new BouncyCastleEncryptionServiceModule());
|
||||
install(new JodaDateServiceModule());
|
||||
install(new NioTransformingHttpCommandExecutorServiceModule());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue