Search in sources :

Example 1 with ApplicationConfiguration

use of io.micronaut.runtime.ApplicationConfiguration in project micronaut-core by micronaut-projects.

the class DefaultHttpClient method createDefaultMediaTypeRegistry.

private static MediaTypeCodecRegistry createDefaultMediaTypeRegistry() {
    JsonMapper mapper = new JacksonDatabindMapper();
    ApplicationConfiguration configuration = new ApplicationConfiguration();
    return MediaTypeCodecRegistry.of(new JsonMediaTypeCodec(mapper, configuration, null), new JsonStreamMediaTypeCodec(mapper, configuration, null));
}
Also used : JsonMapper(io.micronaut.json.JsonMapper) JsonStreamMediaTypeCodec(io.micronaut.json.codec.JsonStreamMediaTypeCodec) JsonMediaTypeCodec(io.micronaut.json.codec.JsonMediaTypeCodec) JacksonDatabindMapper(io.micronaut.jackson.databind.JacksonDatabindMapper) ApplicationConfiguration(io.micronaut.runtime.ApplicationConfiguration)

Aggregations

JacksonDatabindMapper (io.micronaut.jackson.databind.JacksonDatabindMapper)1 JsonMapper (io.micronaut.json.JsonMapper)1 JsonMediaTypeCodec (io.micronaut.json.codec.JsonMediaTypeCodec)1 JsonStreamMediaTypeCodec (io.micronaut.json.codec.JsonStreamMediaTypeCodec)1 ApplicationConfiguration (io.micronaut.runtime.ApplicationConfiguration)1