Dependency injection as a BaseLanguage extension

Hi.

I'm thinking of making a BaseLanguage extension, that would alleviate a lot of java boiler-plate when doing dependency injection.

E.g. alleviating the need to write constructors with injected params, along with the mundane this.field = param, etc...

Any comments on that?

How difficult/feasible could that be?
Or maybe has this been tried before (with what effects) ?


It could either use existing library as backend (e.g. Guice) or do the wiring at code generation time. Suggestions?

License would be Apache/BSD/MIT.

Please voice your opinion, either positive or why this could be a bad idea.

Best, Karol

Please sign in to leave a comment.