Class JsonObjectMapperProvider

java.lang.Object
org.springframework.integration.support.json.JsonObjectMapperProvider

public final class JsonObjectMapperProvider
extends Object
Simple factory to provide JsonObjectMapper instances based on jackson-databind lib in the classpath. If there is no JSON processor in classpath, IllegalStateException will be thrown.
Since:
3.0
Author:
Artem Bilan, Gary Russell, Vikas Prasad
See Also:
Jackson2JsonObjectMapper
  • Method Details

    • newInstance

      public static JsonObjectMapper<?,​?> newInstance()
      Return an object mapper if available.
      Returns:
      the mapper.
      Throws:
      IllegalStateException - if an implementation is not available.
    • jsonAvailable

      public static boolean jsonAvailable()
      Returns true if a supported JSON implementation is on the class path.
      Returns:
      true if newInstance() will return a mapper.
      Since:
      4.2.7