use of org.graylog.grn.GRNModule in project graylog2-server by Graylog2.
the class ObjectMapperModule method configure.
@Override
protected void configure() {
// the ObjectMapperProvider requires at least an empty JacksonSubtypes set.
// if the multibinder wasn't created that reference will be null, so we force its creation here
jacksonSubTypesBinder();
install(new GRNModule());
bind(ClassLoader.class).annotatedWith(GraylogClassLoader.class).toInstance(classLoader);
bind(ObjectMapper.class).toProvider(ObjectMapperProvider.class).asEagerSingleton();
}
Aggregations