Package jakarta.json.bind.annotation
Annotation Interface JsonbVisibility
@JsonbAnnotation
@Retention(RUNTIME)
@Target({ANNOTATION_TYPE,TYPE,PACKAGE})
public @interface JsonbVisibility
Annotation provides way how to customize visibility strategy of the JSON Binding.
It allows for example to specify, that only public getters and setter should be visible.
Usage
The @JsonbVisibility
annotation can be used with the following program elements:
- type
- package
- Since:
- JSON Binding 1.0
-
Required Element Summary
Modifier and TypeRequired ElementDescriptionClass<? extends PropertyVisibilityStrategy>
Custom property visibility strategy used to resolve visibility of the members.
-
Element Details
-
value
Class<? extends PropertyVisibilityStrategy> valueCustom property visibility strategy used to resolve visibility of the members.- Returns:
- Visibility strategy to use.
-