I am pretty new at Vaadin, and perhaps I am missing something.
What I want to achieve is to create a “ResourceProvider” which can provide me with a Resource (ExternalResource,FileResource, ClassResource, … ) without that I have to specify what sort of Resource I need.
So that I can use through my application that ResourceProvider, without having to hardcode that I need a ClassResource for that specific file, and a FileResource for another file.
I looked at the API documentation of those classes and in the “Book of Vaadin”, but I could not find any mechanism/method which allows me to at least verify whether the created Resource exists/isValid/… which would at least allow me to create a try … catch based mechanism.
Anybody more experienced has a good suggestion ?