
Originally Posted by
oliverhutchison
Having more than one image file is easy:
Code:
<bean id="imageResourcesFactory"
class="org.springframework.context.support.ResourceMapFactoryBean">
<property name="locations">
<list>
<value>classpath:org/springframework/richclient/image/images.properties</value>
<value>other_image_file_1</value>
<value>other_image_file_2</value>
<value>other_image_file_3</value>
</list>
</property>
<property name="resourceBasePath">
<value>images/</value>
</property>
</bean>
How do you deal with the situation of multiple "images.properties" files, where each file has a different "resourceBasePath"? For example, for the images provided with Spring Rich Client, this path is "images". But what if you have another images.properties file for images that are in the "com.somecompany.images" package (instead of the "images" package) in a third party jar?
Cheers,
Joe
"All your bean are belong to us" - Spring Framework's IOC Container