Note that usage pattern is such that a single "root" instance is kept
by each com. instance; and
an actual per-operation instance must be constructed by calling
perOperationInstance: reason for this is that instances
use simple caching to handle the common case of repeating types
within JSON Arrays.
| Modifier and Type | Field and Description |
|---|---|
| protected final int | |
| private final ClassKey | _key
Reusable lookup key; only used by per-thread instances. |
| protected final ConcurrentHashMap | _knownSerTypes
Mapping from classes to resolved type constants or indexes, to use for serialization. |
| protected final CopyOnWriteArrayList | |
| private Class | |
| private int | |
| protected final JSONWriter | |
| protected final ReaderWriterModifier | _writerModifier
Provider for reader customizer, if any; may be null. |
| protected final ReaderWriterProvider | _writerProvider
Provider for custom writers, if any; may be null. |
| protected static final BeanPropertyWriter[] |
| Access | Constructor and Description |
|---|---|
| protected | ValueWriterLocator(int features, ReaderWriterProvider rwp, ReaderWriterModifier rwm)
Constructor for the blueprint instance (and variations) |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected int | _findPOJOSerializationType(Class<?> raw)
Method called to locate a serializer for given type and return numeric id. Serializer can be found using one of follow methods (in order of lookups):
|
| private int | |
| private int | |
| protected POJODefinition | |
| protected BeanPropertyWriter[] | |
| public static final ValueWriterLocator | |
| public final int | findSerializationType(Class<?> raw)
The main lookup method used to find type identifier for given raw class; including Bean types (if allowed). |
| public ValueWriter | |
| public ValueWriterLocator | |
| public ValueWriterLocator | |
| public ValueWriterLocator |
| _features | back to summary |
|---|---|
| protected final int _features | |
| _key | back to summary |
|---|---|
| private final ClassKey _key Reusable lookup key; only used by per-thread instances. | |
| _knownSerTypes | back to summary |
|---|---|
| protected final ConcurrentHashMap<ClassKey, Integer> _knownSerTypes Mapping from classes to resolved type constants or indexes, to use for serialization. | |
| _knownWriters | back to summary |
|---|---|
| protected final CopyOnWriteArrayList<ValueWriter> _knownWriters | |
| _prevClass | back to summary |
|---|---|
| private Class<?> _prevClass | |
| _prevType | back to summary |
|---|---|
| private int _prevType | |
| _writeContext | back to summary |
|---|---|
| protected final JSONWriter _writeContext | |
| _writerModifier | back to summary |
|---|---|
| protected final ReaderWriterModifier _writerModifier Provider for reader customizer, if any; may be null.
| |
| _writerProvider | back to summary |
|---|---|
| protected final ReaderWriterProvider _writerProvider Provider for custom writers, if any; may be null.
| |
| NO_PROPS_FOR_WRITE | back to summary |
|---|---|
| protected static final BeanPropertyWriter[] NO_PROPS_FOR_WRITE | |
| ValueWriterLocator | back to summary |
|---|---|
| protected ValueWriterLocator(int features, ReaderWriterProvider rwp, ReaderWriterModifier rwm) Constructor for the blueprint instance (and variations) | |
| ValueWriterLocator | back to summary |
|---|---|
| protected ValueWriterLocator(ValueWriterLocator base, int features, JSONWriter w) | |
| _findPOJOSerializationType | back to summary |
|---|---|
| protected int _findPOJOSerializationType(Class<?> raw) Method called to locate a serializer for given type and return numeric id. Serializer can be found using one of follow methods (in order of lookups):
| |
| _modifyAndRegisterWriter | back to summary |
|---|---|
| private int _modifyAndRegisterWriter(Class<?> rawType, ValueWriter w) | |
| _registerWriter | back to summary |
|---|---|
| private int _registerWriter(Class<?> rawType, ValueWriter valueWriter) | |
| _resolveBeanDef | back to summary |
|---|---|
| protected POJODefinition _resolveBeanDef(Class<?> raw) | |
| _resolveBeanForSer | back to summary |
|---|---|
| protected BeanPropertyWriter[] _resolveBeanForSer(Class<?> raw, POJODefinition beanDef) | |
| blueprint | back to summary |
|---|---|
| public static final ValueWriterLocator blueprint(ReaderWriterProvider rwp, ReaderWriterModifier rwm) | |
| findSerializationType | back to summary |
|---|---|
| public final int findSerializationType(Class<?> raw) The main lookup method used to find type identifier for given raw class; including Bean types (if allowed). | |
| getValueWriter | back to summary |
|---|---|
| public ValueWriter getValueWriter(int index) | |
| perOperationInstance | back to summary |
|---|---|
| public ValueWriterLocator perOperationInstance(JSONWriter w, int features) | |
| with | back to summary |
|---|---|
| public ValueWriterLocator with(ReaderWriterProvider rwp) | |
| with | back to summary |
|---|---|
| public ValueWriterLocator with(ReaderWriterModifier rwm) | |