I don't know if there are propertyEditors registered for java.io.Files, so you will either have to write one yourself and register it, or write a FactoryBean:
Code:
public FileFactoryBean extends SimpleFactoryBean {
private final Resource resource;
public FileFactorybean(final Resource theResource) {
this.resource = theResource;
}
protected abstract Object createInstance() throws Exception {
return resource.getFile();
}
}
then in your bean factory:
Code:
<bean id="myBean" class="my.Class">
<constructor-arg index="0">
<bean class="FileFactoryBean">
<constructor-arg index="0" value="path/to/your/file"/>
</bean>
</constructor-arg>
</bean>
HTH.