public static class JacksonInject.Value extends Object implements JacksonAnnotationValue<JacksonInject>, Serializable
JacksonInject
annotation, as well as to provide possible overrides from non-annotation sources.| Modifier and Type | Field and Description |
|---|---|
protected Object |
_id
Id to use to access injected value; if `null`, "default" name, derived
from accessor will be used.
|
protected Boolean |
_optional |
protected Boolean |
_useInput |
protected static JacksonInject.Value |
EMPTY |
| Modifier | Constructor and Description |
|---|---|
protected |
Value(Object id,
Boolean useInput,
Boolean optional) |
| Modifier and Type | Method and Description |
|---|---|
static JacksonInject.Value |
construct(Object id,
Boolean useInput)
Deprecated.
|
static JacksonInject.Value |
construct(Object id,
Boolean useInput,
Boolean optional) |
static JacksonInject.Value |
empty() |
boolean |
equals(Object o) |
static JacksonInject.Value |
forId(Object id) |
static JacksonInject.Value |
from(JacksonInject src) |
Object |
getId() |
Boolean |
getOptional() |
Boolean |
getUseInput() |
int |
hashCode() |
boolean |
hasId() |
String |
toString() |
Class<JacksonInject> |
valueFor()
Introspection method that may be used to find actual annotation that may be used
as the source for value instance.
|
boolean |
willUseInput(boolean defaultSetting) |
JacksonInject.Value |
withId(Object id) |
JacksonInject.Value |
withOptional(Boolean optional) |
JacksonInject.Value |
withUseInput(Boolean useInput) |
protected static final JacksonInject.Value EMPTY
protected final Object _id
protected final Boolean _useInput
protected final Boolean _optional
public Class<JacksonInject> valueFor()
JacksonAnnotationValuevalueFor in interface JacksonAnnotationValue<JacksonInject>public static JacksonInject.Value empty()
@Deprecated public static JacksonInject.Value construct(Object id, Boolean useInput)
public static JacksonInject.Value construct(Object id, Boolean useInput, Boolean optional)
public static JacksonInject.Value from(JacksonInject src)
public static JacksonInject.Value forId(Object id)
public JacksonInject.Value withId(Object id)
public JacksonInject.Value withUseInput(Boolean useInput)
public JacksonInject.Value withOptional(Boolean optional)
public Object getId()
public Boolean getUseInput()
public Boolean getOptional()
public boolean hasId()
public boolean willUseInput(boolean defaultSetting)
Copyright © 2008–2025 FasterXML. All rights reserved.