Class ObjectWriterInjector
- java.lang.Object
-
- org.glassfish.jersey.jackson.internal.jackson.jaxrs.cfg.ObjectWriterInjector
-
public class ObjectWriterInjector extends Object
Based on ideas from [Issue#32], this class allows "overriding" ofObjectWriterthat JAX-RS Resource will use; usually this is done from a Servlet or JAX-RS filter before execution reaches resource.- Since:
- 2.3
-
-
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<ObjectWriterModifier>_threadLocal
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ObjectWriterModifierget()static ObjectWriterModifiergetAndClear()static voidset(ObjectWriterModifier mod)
-
-
-
Field Detail
-
_threadLocal
protected static final ThreadLocal<ObjectWriterModifier> _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(ObjectWriterModifier mod)
-
get
public static ObjectWriterModifier get()
-
getAndClear
public static ObjectWriterModifier getAndClear()
-
-