This is what I want to happen:
public class MainClass {
public static void main(String args[]) {
run @mod(); // run all methods annotated with @mod
Here's an example using an open source library I have published recently, called Reflect:
List methods = Reflect.on(someClass).methods().annotatedWith(mod.class);
for (Method m : methods) {
m.invoke(null);
}
Maven Dependency:
org.pacesys
reflect
1.0.0
More Recipes found at: https://github.com/gondor/reflect