[Hawkular-dev] generation of message POJOs via JSON schema

John Mazzitelli mazz at redhat.com
Thu Feb 26 16:35:52 EST 2015


Here's an example PR that can show where we can build this "glue code":

https://github.com/hawkular/hawkular/pull/31

It's a JSON schema with generated POJOs. In this case, it is just the metrics. Stefan mentioned he'd rather the metrics provide this - which is fine, we don't have to merge this PR - we just do something similar in the metrics repo rather than in the hawkular project itself.

But the point is, this shows how we can produce a small jar with just the JSON schema files and the Java classes that represent those JSON objects. These generated POJOs play nice with the bus infrastructure and the API we are using to produce/consume messages.


More information about the hawkular-dev mailing list