Search in sources :

Example 1 with GRNModule

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();
}
Also used : GraylogClassLoader(org.graylog2.shared.plugins.GraylogClassLoader) GRNModule(org.graylog.grn.GRNModule) ObjectMapperProvider(org.graylog2.shared.bindings.providers.ObjectMapperProvider)

Aggregations

GRNModule (org.graylog.grn.GRNModule)1 ObjectMapperProvider (org.graylog2.shared.bindings.providers.ObjectMapperProvider)1 GraylogClassLoader (org.graylog2.shared.plugins.GraylogClassLoader)1