public class ObjectReaderInjector extends Object
ObjectReaderModifier
) that can be used to
reconfigure ObjectReader
that JAX-RS Resource will use for reading input into Java Objects.
Usually this class is accessed from a Servlet or JAX-RS filter
before execution reaches resource.Modifier and Type | Field and Description |
---|---|
protected static AtomicBoolean |
_hasBeenSet
Simple marker used to optimize out
ThreadLocal access in cases
where this feature is not being used |
protected static ThreadLocal<ObjectReaderModifier> |
_threadLocal |
Modifier and Type | Method and Description |
---|---|
static ObjectReaderModifier |
get() |
static ObjectReaderModifier |
getAndClear() |
static void |
set(ObjectReaderModifier mod) |
protected static final ThreadLocal<ObjectReaderModifier> _threadLocal
protected static final AtomicBoolean _hasBeenSet
ThreadLocal
access in cases
where this feature is not being usedpublic static void set(ObjectReaderModifier mod)
public static ObjectReaderModifier get()
public static ObjectReaderModifier getAndClear()
Copyright © 2016 JBoss by Red Hat. All rights reserved.