@Target(value={ANNOTATION_TYPE,TYPE})
@Retention(value=RUNTIME)
public @interface JsonPOJOBuilder
JsonDeserialize.builder()
property of JsonDeserialize
.
Annotation is typically used if the naming convention of a Builder class is different from defaults:
withPrefix()
property.
In addition to configuration using this annotation, note that many other configuration
annotations are also applied to Builders, for example
JsonIgnoreProperties
can be used to ignore
"unknown" properties.
Modifier and Type | Fields and Description |
---|---|
static java.lang.String |
DEFAULT_BUILD_METHOD |
static java.lang.String |
DEFAULT_WITH_PREFIX |
Modifier and Type | Optional Element and Description |
---|---|
java.lang.String |
buildMethodName
Property to use for re-defining which zero-argument method
is considered the actual "build-method": method called after
all data has been bound, and the actual instance needs to
be instantiated.
|
java.lang.String |
withPrefix
Property used for (re)defining name prefix to use for
auto-detecting "with-methods": methods that are similar to
"set-methods" (in that they take an argument), but that
may also return the new builder instance to use
(which may be 'this', or a new modified builder instance).
|
public static final java.lang.String DEFAULT_BUILD_METHOD
public abstract java.lang.String buildMethodName
Default value is "build".
public abstract java.lang.String withPrefix
JsonProperty
annotation to indicate "with-methods" (as well as
JsonSetter
).
Default value is "with", so that method named "withValue()" would be used for binding JSON property "value" (using type indicated by the argument; or one defined with annotations.
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"