java.lang.Object
io.spring.format.formatter.intellij.monitor.Monitors

public class Monitors extends Object
Utility class used to manage a collection of Monitors. Creates and manages individual Monitor instances and takes care of combining Trigger results.
Author:
Phillip Webb
  • Constructor Details

    • Monitors

      public Monitors(com.intellij.openapi.project.Project project, Consumer<State> stateChangeConsumer, Monitor.Factory... monitorFactories)
      Create a new Monitors instnace.
      Parameters:
      project - the source project
      stateChangeConsumer - consumer called whenever the ultimate state changes
      monitorFactories - factories used to create the monitors
    • Monitors

      public Monitors(com.intellij.openapi.project.Project project, Consumer<State> stateChangeConsumer, List<Monitor.Factory> monitorFactories)
      Create a new Monitors instnace.
      Parameters:
      project - the source project
      stateChangeConsumer - consumer called whenever the ultimate state changes
      monitorFactories - factories used to create the monitors
  • Method Details

    • stop

      public void stop()