Class ResourceLookup


  • public final class ResourceLookup
    extends java.lang.Object
    Utility used to lookup static resources in multiple locations. This is used for applications extensions mechanism when additional resources could be mapped into application from different classpath location.
    Since:
    04.12.2018
    • Method Detail

      • lookupOrFail

        public static java.lang.String lookupOrFail​(java.lang.String path,
                                                    AssetLookup assets)
                                             throws TemplateNotFoundException
        Shortcut for 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.
        Parameters:
        path - static resource path
        assets - assets resolution object
        Returns:
        resource location path (first occurrence)
        Throws:
        TemplateNotFoundException - if template not found