Class BibernateBanner

java.lang.Object
io.github.blyznytsiaorg.bibernate.utils.BibernateBanner

public class BibernateBanner extends Object
The Banner class provides functionality for printing a banner to the console, either from a predefined string or custom banner by reading from a file.

Configuration options:

See Also:
  • Field Details

    • BIBERNATE_BANNER_KEY

      public static final String BIBERNATE_BANNER_KEY
      Key for enabling/disabling the main banner. Default is "ON".
      See Also:
    • BIBERNATE_BANNER_VALUE

      public static final String BIBERNATE_BANNER_VALUE
      Default value for enabling/disabling the main banner.
      See Also:
    • BIBERNATE_BANNER

      public static final String BIBERNATE_BANNER
      The bibernate banner content.
      See Also:
  • Constructor Details

    • BibernateBanner

      public BibernateBanner()
  • Method Details

    • printBanner

      public static void printBanner()
      Prints the banner to the console based on the configured mode and file settings.
    • getBannerMode

      private static BibernateBanner.Mode getBannerMode()
      Gets the configured banner mode (ON or OFF).
      Returns:
      The configured banner mode.