I need to dynamically placehold the property values in springbeans.xml using Java.util.properties instead of PropertyPlaceHolderConfigurator in Spring Eg.
<bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="location" value="file:test.properties" />
</bean>
<bean id="dbconnectionFactory" class="com.test.Test">
<property name="username" value="${username}" />
<property name="password" value="${password}" />
</bean>
Can I use java.util.properties to mimic the same result i.e.
<bean id="javaproperty" class="java.util.Properties">
<property name="location" value="file:test.properties" />
</bean>
<bean id="dbconnectionFactory"
class="con.test.Test">
<property name="username" value="${username}" />
<property name="password" value="${password}" />
</bean>