org.springframework.boot

Class ImageBanner

  • All Implemented Interfaces:
    Banner


    public class ImageBanner
    extends Object
    implements Banner
    Banner implementation that prints ASCII art generated from an image resource Resource.
    Since:
    1.4.0
    Author:
    Craig Burke, Phillip Webb, Madhura Bhave, Raja Kolli
    • Constructor Detail

      • ImageBanner

        public ImageBanner(Resource image)
    • Method Detail

      • printBanner

        public void printBanner(Environment environment,
                                Class<?> sourceClass,
                                PrintStream out)
        Description copied from interface: Banner
        Print the banner to the specified print stream.
        Specified by:
        printBanner in interface Banner
        Parameters:
        environment - the spring environment
        sourceClass - the source class for the application
        out - the output print stream