We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
public class FlowExecutor { private String flowName; @JsonTypeInfo(use = JsonTypeInfo.Id.CLASS, property = "className") private List<PreProcessor> preProcessors; @JsonTypeInfo(use = JsonTypeInfo.Id.CLASS, property = "className") private List<PostProcessor> postAnalyzers; } public interface PreProcessor { void process(Request request, Context context); } YAMLFactory f = new YAMLFactory(); f.disable(YAMLGenerator.Feature.USE_NATIVE_TYPE_ID); ObjectMapper mapper = new ObjectMapper(f); String config = mapper.writeValueAsString(executor);
see: https://stackoverflow.com/questions/55008706/how-to-de-serialize-an-instance-with-dynamically-typed-attribute https://www.baeldung.com/jackson-inheritance
The text was updated successfully, but these errors were encountered:
No branches or pull requests
see:
https://stackoverflow.com/questions/55008706/how-to-de-serialize-an-instance-with-dynamically-typed-attribute
https://www.baeldung.com/jackson-inheritance
The text was updated successfully, but these errors were encountered: