Class LensSetResolver

java.lang.Object
com.arc_e_tect.gradle.trackerlens.lens.LensSetResolver

public class LensSetResolver extends Object
Resolves the full merged lens set - this plugin's own bundled built-in lenses, every resolved external lensStyle pack (optionally restricted to one preferred pack), and the single lensStylesheet lens when configured - exactly the same way regardless of which task asks for it.

Shared by GenerateTrackerLensTask (which renders the resolved set into the dashboard) and ListTrackerLensStylesTask (which only reports it) - both call this one method rather than each re-implementing lens-source assembly, so the two can never drift apart on what "the available lenses" means.

  • Constructor Details

    • LensSetResolver

      public LensSetResolver()
      Creates a new LensSetResolver.
  • Method Details

    • resolve

      public List<ResolvedLens> resolve(File lensStylesheet, Iterable<File> lensStyleClasspath, String preferredLensPack)
      Resolves the full merged lens set.
      Parameters:
      lensStylesheet - optional single CSS file contributing the custom-lens lens with the highest precedence for that id, or null
      lensStyleClasspath - classpath entries (directories or jars) resolved from the lensStyle configuration; a non-existent entry is skipped
      preferredLensPack - optional group:artifact coordinate restricting the external packs considered to the one whose derived label matches its artifact part; blank or null considers every pack
      Returns:
      the resolved, auto-namespaced lens set