I believe that all you need to do is define the constructor argument of type "Resource" and spring will automatically convert the string into it's Resource abstraction and then you can grab the file reference within the Resource.
For example:
Code:
package com.foo;
public class TestBean {
private Resource resource;
public TestBean(Resource aResource) {
resource = aResource;
//resource.getInputStream();
//resource.exists();
}
}
Code:
<bean name="testBean" class="com.foo.TestBean">
<constructor-arg value="/db/mydb.file" />
</bean>