I am wanting to configure a bean which is itself a java.util.List and fill it (it holds URL strings in my case) as part of the definition.
Is this possible? Or do I have to have a bean which wraps the List, and use setter injection of the list on that object?
Instead of:
I want to do something like:Code:<bean id="schemaURLList" class="com.foobar.URLList"> <property name="urlList"> <list> <value>http://localhost:8080/app/schema/foo.xsd</value> <value>http://localhost:8080/app/schema/bar.xsd</value> <value>http://localhost:8080/app/schema/baz.xsd</value> </list> </property> </bean>
Thanks,Code:<bean id="urlList" class="java.util.List"> <value>http://localhost:8080/app/schema/foo.xsd</value> <value>http://localhost:8080/app/schema/bar.xsd</value> <value>http://localhost:8080/app/schema/baz.xsd</value> </bean>
Ron


Reply With Quote