Genesis is a collection of java code generators, which can be integrated into your project as java annotation processor. It also contains a base module which simplifies writing custom annotation processors.
Genesis is licensed under the Apache License, Version 2.0.
The Genesis ScriptGen code generator delegates the actual generation to a script. The scripts can be written in any language supported by JSR-223 (e.g. javascript, groovy, ...). The script can either create code using simple string operations or by using a full fledged object model.
Add as dependency to your project - click the badge for details.
Annotate classes:
@ScriptGen(script = "metaData.js")
public class Foo {
[...]
}
The script metaData.js is integrated and can be used as starting point. For each annotated class it generates a class with suffix _MD containing metadata, e.g. property names.
The Genesis MetaGen code generator generates metadata classes, i.e. a class containing constants with property names and types.
Add as dependency to your project - click the badge for details.
Annotate classes:
@MetaGen
public class Foo {
[...]
}
That's it.