I am currently evaluating whether to replace our home-grown configuration system with Spring in the NetarchiveSuite system (see http://netarchive.dk/suite). My first attempt to convert a currently factory-managed object into being Spring-managed is stuck on the following:
The current object takes several arguments in the constructor that are created at run-time (i.e. not likely candidates for being Spring-managed), but also uses several settings that should be Spring-managed. Since the constructor arguments are put into final fields (and I'd really like to keep it that way), I'm looking for a way to have Spring supply *some* of my constructor arguments for injecting settings, but have the remaining arguments be given when the object is created, e.g., by getBean("myBean", arg1, arg2, ...). Some manual-reading, googling and forum searching has given me little clue on whether this is possible. Am I right to assume that Spring-managed objects must have all their constructor arguments managed by Spring, or have I missed something?
Thanks in advance,