Package com.vaadin.hilla.parser.jackson
Interface JacksonObjectMapperFactory
- All Known Implementing Classes:
JacksonObjectMapperFactory.Json
public interface JacksonObjectMapperFactory
A factory to build a custom ObjectMapper for serializing and deserializing
data exchange between server and client in runtime; also, it is used by the
JVM parser to extract properties from the data beans.
For example, if you want to have the behavior of the old engine, you should create the following factory:
public class OldEngineObjectMapper extends JacksonObjectMapperFactory.Json {
@Override
public ObjectMapper build() {
return super.build().setVisibility(PropertyAccessor.ALL,
JsonAutoDetect.Visibility.ANY);
}
}
-
Nested Class Summary
Nested Classes -
Method Summary
-
Method Details
-
build
tools.jackson.databind.ObjectMapper build()
-