Search in sources :

Example 1 with JacksonSmileProvider

use of com.fasterxml.jackson.jaxrs.smile.JacksonSmileProvider in project druid by druid-io.

the class JettyServerModule method getJacksonSmileProvider.

@Provides
@Singleton
public JacksonSmileProvider getJacksonSmileProvider(@Smile ObjectMapper objectMapper) {
    final JacksonSmileProvider provider = new JacksonSmileProvider();
    provider.setMapper(objectMapper);
    return provider;
}
Also used : JacksonSmileProvider(com.fasterxml.jackson.jaxrs.smile.JacksonSmileProvider) LazySingleton(io.druid.guice.LazySingleton) Singleton(com.google.inject.Singleton) Provides(com.google.inject.Provides)

Example 2 with JacksonSmileProvider

use of com.fasterxml.jackson.jaxrs.smile.JacksonSmileProvider in project druid by druid-io.

the class JettyServerModule method getJacksonSmileProvider.

@Provides
@Singleton
public JacksonSmileProvider getJacksonSmileProvider(@Smile ObjectMapper objectMapper) {
    final JacksonSmileProvider provider = new JacksonSmileProvider();
    provider.setMapper(objectMapper);
    return provider;
}
Also used : JacksonSmileProvider(com.fasterxml.jackson.jaxrs.smile.JacksonSmileProvider) LazySingleton(org.apache.druid.guice.LazySingleton) Singleton(com.google.inject.Singleton) Provides(com.google.inject.Provides)

Aggregations

JacksonSmileProvider (com.fasterxml.jackson.jaxrs.smile.JacksonSmileProvider)2 Provides (com.google.inject.Provides)2 Singleton (com.google.inject.Singleton)2 LazySingleton (io.druid.guice.LazySingleton)1 LazySingleton (org.apache.druid.guice.LazySingleton)1