Class Reporter
- java.lang.Object
-
- ru.vyarus.dropwizard.guice.module.installer.util.Reporter
-
- Direct Known Subclasses:
ListenerReporter,PluginReporter,ProviderReporter
public class Reporter extends java.lang.ObjectHelper class to simplify installers dropwizard style report building.- Since:
- 12.10.2014
-
-
Constructor Summary
Constructors Constructor Description Reporter(java.lang.Class<? extends FeatureInstaller> type, java.lang.String title)Create reporter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReporteremptyLine()Prints empty line.Reporterline(java.lang.String line, java.lang.Object... args)Prints formatted line.voidreport()Prints composed report into logger or do nothing if no lines were provided.Reporterseparate()Writes empty line if something was printed before and it was notemptyLine().
-
-
-
Field Detail
-
NEWLINE
public static final java.lang.String NEWLINE
Newline.
-
TAB
public static final java.lang.String TAB
Tab.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Reporter
public Reporter(java.lang.Class<? extends FeatureInstaller> type, java.lang.String title)
Create reporter.- Parameters:
type- installer typetitle- title
-
-
Method Detail
-
line
public final Reporter line(java.lang.String line, java.lang.Object... args)
Prints formatted line.- Parameters:
line- line withString.formatsyntaxargs- 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 notemptyLine().- Returns:
- reporter instance
-
report
public void report()
Prints composed report into logger or do nothing if no lines were provided.
-
-