I need a way to run a java method for ex. createModule("Login") and as an output to have:
- New folder named mod_login
- Inside on mod_login java classes files created from a template
If the template is
class Name extends Blah implement Blah {
private createdInt;
private int getCreatedInt() {
return createdInt;
}
}
In return I want to get a dynamically created class:
class Login extends Blah implement Blah {
private loginInt;
private int getLoginInt() {
return loginInt;
}
}
Tried to look into groovy to do it, but could not find anything usefull.
P.S. it shouldn't happen on runtime, it's a more like a helper to instantiate these modules with just 1 button, instead of typing them
Working example which will help you.