Class ObjectWriterInjector
- java.lang.Object
-
- com.fasterxml.jackson.jakarta.rs.cfg.ObjectWriterInjector
-
public class ObjectWriterInjector extends Object
This class allows "overriding" ofObjectWriter
that Jakarta-RS Resource will use; usually this is done from a Servlet or Jakarta-RS filter before execution reaches resource.
-
-
Field Summary
Fields Modifier and Type Field Description protected static AtomicBoolean
_hasBeenSet
Simple marker used to optimize outThreadLocal
access in cases where this feature is not being usedprotected static ThreadLocal<ObjectWriterModifier>
_threadLocal
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ObjectWriterModifier
get()
static ObjectWriterModifier
getAndClear()
static void
set(ObjectWriterModifier mod)
-
-
-
Field Detail
-
_threadLocal
protected static final ThreadLocal<ObjectWriterModifier> _threadLocal
-
_hasBeenSet
protected static final AtomicBoolean _hasBeenSet
Simple marker used to optimize outThreadLocal
access in cases where this feature is not being used
-
-
Method Detail
-
set
public static void set(ObjectWriterModifier mod)
-
get
public static ObjectWriterModifier get()
-
getAndClear
public static ObjectWriterModifier getAndClear()
-
-