Interface ServiceLibFinder


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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.List<java.lang.String> getComponentReferences​(java.lang.String[] servicePaths)
      Returns the component references defined by the services for head inclusion.
      java.util.List<java.lang.String> getScriptPaths​(java.lang.String[] servicePaths)
      Returns the path of the scripts defined by the services for head inclusion.
    • Method Detail

      • getScriptPaths

        java.util.List<java.lang.String> getScriptPaths​(java.lang.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

        java.util.List<java.lang.String> getComponentReferences​(java.lang.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