Hi bertrand
If I understand the question then the answer is trivial - if not please accept my apologies!
Long before Spring was using PropertyPlaceholderConfigurer Java used properties files directly.
If we have some application context as follows:
Code:
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer" id="propertyConfigurer">
<property name="location">
<value>file:C:/CONFIG/settings.properties</value>
</property>
</bean>
...
<bean class="fe.bl.config.Foo" id="foo">
<constructor-arg value="${SMALL_ICON}" index="0" type="java.lang.String"/>
...
Then the following Java code can read the property "SMALL_ICON" directly:
Code:
Properties properties = new Properties();
try {
properties.load(new FileInputStream("C:/CONFIG/settings.properties"));
} catch (IOException e) {
}
String smallIcon = properties.getProperty("SMALL_ICON");
}