Locates Wicket resources.
Contains the logic to locate a resource based on a path, a variation, a style (see {@link org.apache.wicket.Session}), a locale and an extension string. The full filename will be built like: <path>_<variation>_<style>_<locale>.<extension>.
Resource matches will be attempted in the following order:
- <path>_<variation>_<style>_<locale>.<extension>
- <path>_<style>_<locale>.<extension>
- <path>_<locale>.<extension>
- <path>_<style>.<extension>
- <path>.<extension>
Locales may contain a language, a country and a region or variant. Combinations of these components will be attempted in the following order:
- locale.toString() see javadoc for Locale for more details
- <language>_<country>
- <language>
Resources will be actually loaded by the {@link IResourceFinder}s defined in the resource settings. By default there are finders that look in the classpath and in the classpath in META-INF/resources. You can add more by adding {@link WebApplicationPath}s or {@link Path}s to {@link org.apache.wicket.settings.ResourceSettings#getResourceFinders()}.
@author Juergen Donnerstag
@author Jonathan Locke