ObjectMapper (usually on per-call basis).
Usually property is not deserialized from JSON, although it is possible
to have injected value as default and still allow optional override
from JSON.
| Modifier and Type | Class and Description |
|---|---|
| public static class | JacksonInject.
Helper class used to contain information from a single |
| Modifier and Type | Method and Description |
|---|---|
| public OptBoolean | Returns: OptBoolean#TRUE to enable use of value from input instead of
injected value, if available; OptBoolean#FALSE if injected value will
always be used regardless of input.Whether matching value from input (if any) is used for annotated property or not; if disabled (`OptBoolean.FALSE`), input value (if any) will be ignored; otherwise it will override injected value. |
| public String | Returns: Logical id of the value to injectLogical id of the value to inject; if not specified (or specified as empty String), will use id based on declared type of property. |
| useInput | back to summary |
|---|---|
| public OptBoolean useInput() Whether matching value from input (if any) is used for annotated property or not; if disabled (`OptBoolean.FALSE`), input value (if any) will be ignored; otherwise it will override injected value. Default is `OptBoolean.DEFAULT`, which translates to `OptBoolean.TRUE`: this is for backwards compatibility (2.8 and earlier always allow binding input value).
| |
| value | back to summary |
|---|---|
| public String value() Logical id of the value to inject; if not specified (or specified as empty String), will use id based on declared type of property.
| |
JacksonInject
annotation, as well as to provide possible overrides from non-annotation sources.
| Modifier and Type | Field and Description |
|---|---|
| protected final Object | _id
Id to use to access injected value; if `null`, "default" name, derived from accessor will be used. |
| protected final Boolean | |
| protected static final JacksonInject. | |
| private static final long |
| Modifier and Type | Method and Description |
|---|---|
| private static boolean | |
| public static JacksonInject. | |
| public static JacksonInject. | |
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. Indicates whether some other object is "equal to" this one. |
| public static JacksonInject. | |
| public static JacksonInject. | |
| public Object | |
| public Boolean | |
| public int | |
| public boolean | |
| public String | |
| public Class | valueFor()
Implements com. Introspection method that may be used to find actual annotation that may be used as the source for value instance. |
| public boolean | |
| public JacksonInject. | |
| public JacksonInject. |
| _id | back to summary |
|---|---|
| protected final Object _id Id to use to access injected value; if `null`, "default" name, derived from accessor will be used. | |
| _useInput | back to summary |
|---|---|
| protected final Boolean _useInput | |
| EMPTY | back to summary |
|---|---|
| protected static final JacksonInject. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| Value | back to summary |
|---|---|
| protected Value(Object id, Boolean useInput) | |
| _empty | back to summary |
|---|---|
| private static boolean _empty(Object id, Boolean useInput) | |
| construct | back to summary |
|---|---|
| public static JacksonInject. | |
| empty | back to summary |
|---|---|
| public static JacksonInject. | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| forId | back to summary |
|---|---|
| public static JacksonInject. | |
| from | back to summary |
|---|---|
| public static JacksonInject. | |
| getId | back to summary |
|---|---|
| public Object getId() | |
| getUseInput | back to summary |
|---|---|
| public Boolean getUseInput() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| hasId | back to summary |
|---|---|
| public boolean hasId() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| valueFor | back to summary |
|---|---|
| public Class Implements com. Doc from com. Introspection method that may be used to find actual annotation that may be used as the source for value instance.
| |
| willUseInput | back to summary |
|---|---|
| public boolean willUseInput(boolean defaultSetting) | |
| withId | back to summary |
|---|---|
| public JacksonInject. | |
| withUseInput | back to summary |
|---|---|
| public JacksonInject. | |