Interface ServiceLibFinder


  • public interface ServiceLibFinder
    The ServiceLibFinder provides methods to look up JS Library Code for Page-inclusion
    • Method Detail

      • getScriptPaths

        List<String> getScriptPaths​(String[] servicePaths)
        Returns the path of the scripts defined by the services for head inclusion.
        Parameters:
        servicePaths - array of servicePaths.
        Returns:
        Paths to the scripts that should be included for the services to work in a page
      • getComponentReferences

        List<String> getComponentReferences​(String[] servicePaths)
        Returns the component references defined by the services for head inclusion.

        A component reference is simply a resource type, e.g. the cq/webservices/components/mywebservice

        Parameters:
        servicePaths - array of servicePaths.
        Returns:
        a list of component references, possiby empty, but never null