Top Description Fields Constructors Methods
com.fasterxml.jackson.jakarta.rs.cfg

public Class ObjectReaderInjector

extends Object
Class Inheritance
Imports
java.util.concurrent.atomic.AtomicBoolean, com.fasterxml.jackson.databind.*

This class allows registering a modifier (ObjectReaderModifier) that can be used to reconfigure ObjectReader that Jakarta-RS Resource will use for reading input into Java Objects. Usually this class is accessed from a Servlet or Jakarta-RS filter before execution reaches resource.

Field Summary

Modifier and TypeField and Description
protected static final AtomicBoolean
_hasBeenSet

Simple marker used to optimize out ThreadLocal access in cases where this feature is not being used

protected static final ThreadLocal<ObjectReaderModifier>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static ObjectReaderModifier
get()

public static ObjectReaderModifier
public static void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_hasBeenSetback to summary
protected static final AtomicBoolean _hasBeenSet

Simple marker used to optimize out ThreadLocal access in cases where this feature is not being used

_threadLocalback to summary
protected static final ThreadLocal<ObjectReaderModifier> _threadLocal

Constructor Detail

ObjectReaderInjectorback to summary
private ObjectReaderInjector()

Method Detail

getback to summary
public static ObjectReaderModifier get()
getAndClearback to summary
public static ObjectReaderModifier getAndClear()
setback to summary
public static void set(ObjectReaderModifier mod)