Class Banner
java.lang.Object
be.yildizgames.common.application.helper.cli.Banner
A banner to display at the startup of the application in the terminal.
This will not be displayed in logs.
- Author:
- Grégory Van den Borre
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidaddLine(BannerLine line) Adds a line of text to the banner.final voiddisplay()Displays the banner in the terminal.final voidLoads lines of text from the given file path.
-
Constructor Details
-
Banner
Creates a new banner with the given application name.- Parameters:
appName- the name of the application
-
-
Method Details
-
addLine
Adds a line of text to the banner.- Parameters:
line- the text to add
-
fromFile
Loads lines of text from the given file path.- Parameters:
path- the path to load lines from
-
display
public final void display()Displays the banner in the terminal.
-