public class DruidTestModule extends Object implements com.google.inject.Module
Constructor and Description |
---|
DruidTestModule() |
Modifier and Type | Method and Description |
---|---|
void |
configure(com.google.inject.Binder binder) |
com.metamx.http.client.HttpClient |
getHttpClient(IntegrationTestingConfig config,
com.metamx.common.lifecycle.Lifecycle lifecycle,
com.metamx.http.client.HttpClient delegate) |
com.metamx.emitter.service.ServiceEmitter |
getServiceEmitter(com.google.common.base.Supplier<com.metamx.emitter.core.LoggingEmitterConfig> config,
com.fasterxml.jackson.databind.ObjectMapper jsonMapper) |
public void configure(com.google.inject.Binder binder)
configure
in interface com.google.inject.Module
@Provides public com.metamx.http.client.HttpClient getHttpClient(IntegrationTestingConfig config, com.metamx.common.lifecycle.Lifecycle lifecycle, com.metamx.http.client.HttpClient delegate) throws Exception
Exception
@Provides public com.metamx.emitter.service.ServiceEmitter getServiceEmitter(com.google.common.base.Supplier<com.metamx.emitter.core.LoggingEmitterConfig> config, com.fasterxml.jackson.databind.ObjectMapper jsonMapper)
Copyright © 2011–2017. All rights reserved.