Class TrackerViewFactory
java.lang.Object
com.arc_e_tect.gradle.trackerlens.dashboard.TrackerViewFactory
Builds a
TrackerView from a tracker's raw records, ready for
DashboardHtmlWriter to render.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild(String trackerId, List<String> stages, List<LifecycleRecord> records, Optional<Projection> projection, Instant now) Builds the view for one tracker.
-
Constructor Details
-
TrackerViewFactory
public TrackerViewFactory()Creates a newTrackerViewFactory.
-
-
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 idstages- the tracker's canonical stage names, in orderrecords- the tracker's recordsprojection- the tracker's completion projection, if availablenow- the instant to render as of- Returns:
- the built view
-