org.springframework.boot

Class ResourceBanner

  • All Implemented Interfaces:
    Banner


    public class ResourceBanner
    extends Object
    implements Banner
    Banner implementation that prints from a source Resource.
    Since:
    1.2.0
    Author:
    Phillip Webb, Vedran Pavic
    • Constructor Detail

      • ResourceBanner

        public ResourceBanner(org.springframework.core.io.Resource resource)
    • Method Detail

      • printBanner

        public void printBanner(org.springframework.core.env.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
      • getPropertyResolvers

        protected List<org.springframework.core.env.PropertyResolver> getPropertyResolvers(org.springframework.core.env.Environment environment,
                                                                                           Class<?> sourceClass)
      • getApplicationVersion

        protected String getApplicationVersion(Class<?> sourceClass)
      • getBootVersion

        protected String getBootVersion()
      • getApplicationTitle

        protected String getApplicationTitle(Class<?> sourceClass)

Copyright © 2015 Pivotal Software, Inc.. All rights reserved.