All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.webpieces.plugins.json.JacksonModule Maven / Gradle / Ivy

Go to download

Someone forgot to fill this in. See http://stackoverflow.com/questions/38272550/how-to-fail-the-gradle-build-if-subproject-is-missing-a-property

There is a newer version: 1.9.95
Show newest version
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