Package com.alibaba.fastjson.annotation
Annotation Type JSONPOJOBuilder
-
@Retention(RUNTIME) @Target(TYPE) public @interface JSONPOJOBuilder
- Since:
- 1.2.8
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description StringbuildMethodProperty 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.StringwithPrefixProperty 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).
-
-
-
Element Detail
-
buildMethod
String buildMethod
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.Default value is "build".
- Default:
- "build"
-
-
-
withPrefix
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). Note that in addition to this prefix, it is also possible to useJSONFieldannotation to indicate "with-methods".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.
- Default:
- "with"
-
-