Class ObjectMapperFactory

java.lang.Object
se.idsec.signservice.integration.core.ObjectMapperFactory

public class ObjectMapperFactory extends Object
Singleton factory for getting an ObjectMapper instance.

By using this factory, a pre-configured ObjectMapper instance can be obtained.

Author:
Martin Lindström
  • Method Details

    • getInstance

      public static ObjectMapperFactory getInstance()
      Returns the ObjectMapper instance.
      Returns:
      the ObjectMapper instance
    • getObjectMapper

      public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
      If an ObjectMapper instance has been configured, it is returned. Otherwise a new instance is created.
      Returns:
      the ObjectMapper instance
    • setObjectMapper

      public void setObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
      Assigns the ObjectMapper instance.
      Parameters:
      objectMapper - the ObjectMapper instance