Jackson Glossary: VisibilityChecker
Package: org.codehaus.jackson.map.introspect
Jar: jackson-mapper
Role
This interface defines API for configuration objects used to figure out whether specific property components (fields, getters, setters, constructor parameters) can be auto-detected or not. An instance is defined to be used by ObjectMapper and is passed to POJO property detection functionality to be used when auto-detecting POJO properties.
Visibility levels of components are defined using org.codehaus.jackson.annotate.JsonAutoDetect#Visibility enumeration.
Known implementations
VisibilityChecker.Std is a basic implementation that can be configured to use per-component-type minimal visibility levels: it is used by default with settings to auto-detect:
- Public getters (methods with name using pattern "getPropertyName()"), "is getters" ("boolean isPropertyName()") and fields
- Setters with any visibility levels
Public single-argument constructor and factory methods for primitive types int and long, and java.lang.String.
Back to Jackson Term Glossary
