Spring and named constructor arguments

I’m a big fan of Spring and I’ve been using various parts of it now for the last two and a half years. Using the Spring dependency injection container has indeed made my life (as a programmer, of course Eye-wink) a lot easier. In this post I will demonstrate a technique which could be incorporated into Spring to add support for constructor injection using named parameters. The same technique could also be useful for scripting languages like Jython and Groovy to add support for calling Java methods using named parameters. Continue reading