Package grails.boot

Class GrailsResourceBanner

  • All Implemented Interfaces:
    org.springframework.boot.Banner

    public class GrailsResourceBanner
    extends org.springframework.boot.ResourceBanner
    Banner implementation that prints from a source text Resource. Add extra properties related Grails, such as Grails version, application name and version.
    Since:
    2022.0.0
    See Also:
    ResourceBanner
    • Nested Class Summary

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

        org.springframework.boot.Banner.Mode
    • Constructor Summary

      Constructors 
      Constructor Description
      GrailsResourceBanner​(org.springframework.core.io.Resource resource)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.String getApplicationVersion​(java.lang.Class<?> sourceClass)  
      protected java.util.List<org.springframework.core.env.PropertyResolver> getPropertyResolvers​(org.springframework.core.env.Environment environment, java.lang.Class<?> sourceClass)  
      • Methods inherited from class org.springframework.boot.ResourceBanner

        getApplicationTitle, getBootVersion, printBanner
      • Methods inherited from class java.lang.Object

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

      • GrailsResourceBanner

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

      • getPropertyResolvers

        protected java.util.List<org.springframework.core.env.PropertyResolver> getPropertyResolvers​(org.springframework.core.env.Environment environment,
                                                                                                     java.lang.Class<?> sourceClass)
        Overrides:
        getPropertyResolvers in class org.springframework.boot.ResourceBanner
      • getApplicationVersion

        protected java.lang.String getApplicationVersion​(java.lang.Class<?> sourceClass)
        Overrides:
        getApplicationVersion in class org.springframework.boot.ResourceBanner