I'm trying to use PropertiesFactoryBean to load all files ending with .prop
from certain directory.
<bean id="props" class="org.springframework.beans.factory.config.PropertiesFactoryBean">
<property name="location" value="file:/etc/app/*.prop"/>
</bean>
When running this as Junit test, everyting works OK and org.springframework.core.io.support.PropertiesLoaderSupport#loadProperties
get list of all files (wildcard expanded) as FileSystemResource
and loads them.
However when running in OSGI environment (Karaf) PropertiesLoaderSupport#loadProperties
will get single OsgiBundleResource
with path set to /etc/app/*.prop
which is invalid, of course.