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

kikaha.urouting.serializers.jackson.Jackson Maven / Gradle / Ivy

package kikaha.urouting.serializers.jackson;

import lombok.val;
import trip.spi.Producer;
import trip.spi.Singleton;

import com.fasterxml.jackson.databind.ObjectMapper;

@Singleton
public class Jackson {

	private static final ObjectMapper INSTANCE = createMapper();

	private static ObjectMapper createMapper() {
		val mapper = new ObjectMapper();
		mapper.findAndRegisterModules();
		return mapper;
	}
	
	@Producer
	public ObjectMapper objectMapper(){
		return INSTANCE;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy