org.springframework.boot

Class ResourceBanner

  • java.lang.Object
    • org.springframework.boot.ResourceBanner
  • All Implemented Interfaces:
    Banner


    public class ResourceBanner
    extends java.lang.Object
    implements Banner
    Banner implementation that prints from a source text Resource.
    Since:
    1.2.0
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.springframework.boot.Banner

        Banner.Mode
    • Constructor Summary

      Constructors 
      Constructor and Description
      ResourceBanner(org.springframework.core.io.Resource resource) 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      protected java.lang.String getApplicationTitle(java.lang.Class<?> sourceClass) 
      protected java.lang.String getApplicationVersion(java.lang.Class<?> sourceClass) 
      protected java.lang.String getBootVersion() 
      protected java.util.List<org.springframework.core.env.PropertyResolver> getPropertyResolvers(org.springframework.core.env.Environment environment, java.lang.Class<?> sourceClass) 
      void printBanner(org.springframework.core.env.Environment environment, java.lang.Class<?> sourceClass, java.io.PrintStream out)
      Print the banner to the specified print stream.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ResourceBanner

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

      • printBanner

        public void printBanner(org.springframework.core.env.Environment environment,
                                java.lang.Class<?> sourceClass,
                                java.io.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 java.util.List<org.springframework.core.env.PropertyResolver> getPropertyResolvers(org.springframework.core.env.Environment environment,
                                                                                                     java.lang.Class<?> sourceClass)
      • getApplicationVersion

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

        protected java.lang.String getBootVersion()
      • getApplicationTitle

        protected java.lang.String getApplicationTitle(java.lang.Class<?> sourceClass)