java.lang.Object
ru.vyarus.dropwizard.guice.module.installer.util.Reporter
Direct Known Subclasses:
ListenerReporter, PluginReporter, ProviderReporter

public class Reporter extends Object
Helper class to simplify installers dropwizard style report building.
Since:
12.10.2014
  • Field Details

  • Constructor Details

    • Reporter

      public Reporter(Class<? extends FeatureInstaller> type, String title)
      Create reporter.
      Parameters:
      type - installer type
      title - title
  • Method Details

    • line

      public final Reporter line(String line, Object... args)
      Prints formatted line.
      Parameters:
      line - line with String.format syntax
      args - message arguments
      Returns:
      reporter instance
    • emptyLine

      public final Reporter emptyLine()
      Prints empty line.
      Returns:
      reporter instance
    • separate

      public final Reporter separate()
      Writes empty line if something was printed before and it was not emptyLine().
      Returns:
      reporter instance
    • report

      public void report()
      Prints composed report into logger or do nothing if no lines were provided.