Class ObjectMapperContextResolver
- java.lang.Object
-
- io.jans.configapi.core.configuration.ObjectMapperContextResolver
-
- All Implemented Interfaces:
jakarta.ws.rs.ext.ContextResolver<com.fasterxml.jackson.databind.ObjectMapper>
@Singleton public class ObjectMapperContextResolver extends Object implements jakarta.ws.rs.ext.ContextResolver<com.fasterxml.jackson.databind.ObjectMapper>
-
-
Constructor Summary
Constructors Constructor Description ObjectMapperContextResolver()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static com.fasterxml.jackson.databind.ObjectMapper
createDefaultMapper()
com.fasterxml.jackson.databind.ObjectMapper
getContext(Class<?> type)
-
-
-
Method Detail
-
getContext
public com.fasterxml.jackson.databind.ObjectMapper getContext(Class<?> type)
- Specified by:
getContext
in interfacejakarta.ws.rs.ext.ContextResolver<com.fasterxml.jackson.databind.ObjectMapper>
-
createDefaultMapper
public static com.fasterxml.jackson.databind.ObjectMapper createDefaultMapper()
-
-