geeky · java

Jackson Ignore Property/Convenience Method

Here’s something I learned about Jackson and you may run into it. What gets serialized by default? Properties of an object are initially determined by process called auto-detection: all member methods and fields are checked to find: “Getter” methods: all no-argument public member methods which return a value, and conform to naming convention of “getXxx”… Continue reading Jackson Ignore Property/Convenience Method

geeky · java

Java Generics – conditionally instantiate a class

From Class to list of Enums So if I want to instantiate a class via some condition, I can do the following but still how do I know what type to use? https://github.com/dodozhang21/JavaGenerics