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.Object
Helper 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Reporter
emptyLine()
Prints empty line.Reporter
line(java.lang.String line, java.lang.Object... args)
Prints formatted line.void
report()
Prints composed report into logger or do nothing if no lines were provided.Reporter
separate()
Writes empty line if something was printed before and it was notemptyLine()
.
-
-
-
Field Detail
-
NEWLINE
public static final java.lang.String NEWLINE
-
TAB
public static final java.lang.String TAB
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Reporter
public Reporter(java.lang.Class<? extends FeatureInstaller> type, java.lang.String title)
-
-
Method Detail
-
line
public final Reporter line(java.lang.String line, java.lang.Object... args)
Prints formatted line.- Parameters:
line
- line withString.format
syntaxargs
- 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.
-
-