org.webpieces.plugins.json.JacksonModule Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of json-jackson-plugin Show documentation
Show all versions of json-jackson-plugin Show documentation
Someone forgot to fill this in. See http://stackoverflow.com/questions/38272550/how-to-fail-the-gradle-build-if-subproject-is-missing-a-property
package org.webpieces.plugins.json;
import org.codehaus.jackson.map.ObjectMapper;
import org.webpieces.router.api.BodyContentBinder;
import com.google.inject.AbstractModule;
import com.google.inject.multibindings.Multibinder;
public class JacksonModule extends AbstractModule {
@Override
protected void configure() {
Multibinder uriBinder = Multibinder.newSetBinder(binder(), BodyContentBinder.class);
uriBinder.addBinding().to(JacksonLookup.class);
bind(ObjectMapper.class).toInstance(new ObjectMapper());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy