I figured out how to do what I wanted, but in a cleaner way. I was originally creating a Resource bean and then passing it as property to a View bean. Now I just get a reference to the desired resource directly from the ApplicationContext.
My View bean inherits from AbstractView which implements ApplicationContextAware. So, to get reference to a file resource, in decendant View just do following:
Code:
getApplicationContext().getResource( "relativePathToTargetFile" );
The bean definition looks like this:
Code:
<bean id="viewName" class="xxx.MyView">
<property name="targetFile"><value>WEB-INF/.../targetFile.xxx</value></property>
</bean>