Actually, for providing the "home" value as a prefix, I would consider using the PropertyPlaceholderConfigurer. That way the value for your home directory is stored in a properties file rather than hardcoded in the "ConstantsIF". You might consider trying something like this:
Code:
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="location" value="classpath:/example/constants.properties"/>
</bean>
<bean id="testBean" class="example.TestBean">
<property name="filename" value="${home.dir}/rest/of/path"/>
</bean>
Then in the constants.properties file, simply provide:
The TestBean instance's 'filename' property would then have a value of: "/home/rest/of/path"