public final class ResourceLookup
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
existsOrFail(java.lang.String path,
AssetLookup assets)
Shortcut for
AssetLookup.load(String) with fail in case of not found template. |
static java.lang.String |
lookupOrFail(java.lang.String path,
AssetLookup assets)
Shortcut for
AssetLookup.lookupPath(String) with fail in case of not found template. |
public static java.lang.String lookupOrFail(java.lang.String path,
AssetLookup assets)
throws TemplateNotFoundException
AssetLookup.lookupPath(String) with fail in case of not found template.
Here path may be direct url (which must be properly mapped to classpath) or just relative path to search
within of registered locations.path - static resource pathassets - assets resolution objectTemplateNotFoundException - if template not foundpublic static void existsOrFail(java.lang.String path,
AssetLookup assets)
throws TemplateNotFoundException
AssetLookup.load(String) with fail in case of not found template.path - path to check (absolute (/) or relative)assets - assets resolution objectTemplateNotFoundException - if template not found