Class ObjectReaderInjector
- java.lang.Object
-
- com.fasterxml.jackson.jakarta.rs.cfg.ObjectReaderInjector
-
public class ObjectReaderInjector extends Object
This class allows registering a modifier (ObjectReaderModifier) that can be used to reconfigureObjectReaderthat 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
Fields Modifier and Type Field Description protected static AtomicBoolean_hasBeenSetSimple marker used to optimize outThreadLocalaccess in cases where this feature is not being usedprotected static ThreadLocal<ObjectReaderModifier>_threadLocal
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ObjectReaderModifierget()static ObjectReaderModifiergetAndClear()static voidset(ObjectReaderModifier mod)
-
-
-
Field Detail
-
_threadLocal
protected static final ThreadLocal<ObjectReaderModifier> _threadLocal
-
_hasBeenSet
protected static final AtomicBoolean _hasBeenSet
Simple marker used to optimize outThreadLocalaccess in cases where this feature is not being used
-
-
Method Detail
-
set
public static void set(ObjectReaderModifier mod)
-
get
public static ObjectReaderModifier get()
-
getAndClear
public static ObjectReaderModifier getAndClear()
-
-