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

public Class ObjectWriterInjector

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

This class allows "overriding" of ObjectWriter that Jakarta-RS Resource will use; usually this is done 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<ObjectWriterModifier>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static ObjectWriterModifier
get()

public static ObjectWriterModifier
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<ObjectWriterModifier> _threadLocal

Constructor Detail

ObjectWriterInjectorback to summary
private ObjectWriterInjector()

Method Detail

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