How to XML configure Spring bean for constructor injection when bean has varargs constructor
- by hamletdarcy
Is there a way to write a Spring bean in XML so that it uses constructor injection when that constructor has a varargs parameter type? IE, is there a way to specify an array the way you can specify a list?
For instance:
class MyClass {
MyClass(String... args) {
// rest omitted
}
}