Have you tried using Spring -EL? Take a look at LINK
With Spring-EL, you can do something like the following:
<bean id="dir" class="java.lang.String"> <property name="path" value="c:/work/" /> </bean> <bean id="file" class="java.lang.String"> <property name="fileName" value="file.properties" /> </bean> <bean id="path" class="java.lang.String"> <property name="initialShapeSeed" value="#{dir.path}#{file.fileName}"/> </bean>
It is available with Spring 3.0.
source share