Class TrackerViewFactory

java.lang.Object
com.arc_e_tect.gradle.trackerlens.dashboard.TrackerViewFactory

public class TrackerViewFactory extends Object
Builds a TrackerView from a tracker's raw records, ready for DashboardHtmlWriter to render.
  • Constructor Details

    • TrackerViewFactory

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

    • build

      public TrackerView build(String trackerId, List<String> stages, List<LifecycleRecord> records, Optional<Projection> projection, Instant now)
      Builds the view for one tracker.
      Parameters:
      trackerId - the tracker's registered id
      stages - the tracker's canonical stage names, in order
      records - the tracker's records
      projection - the tracker's completion projection, if available
      now - the instant to render as of
      Returns:
      the built view