Package org.springframework.boot
Class ResourceBanner
- java.lang.Object
 - org.springframework.boot.ResourceBanner
 
- All Implemented Interfaces:
 Banner
public class ResourceBanner extends Object implements Banner
Banner implementation that prints from a source textResource.- Since:
 - 1.2.0
 
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.boot.Banner
Banner.Mode
Constructor Summary
Constructors Constructor Description ResourceBanner(org.springframework.core.io.Resource resource)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetApplicationTitle(Class<?> sourceClass)protected StringgetApplicationVersion(Class<?> sourceClass)protected StringgetBootVersion()protected List<org.springframework.core.env.PropertyResolver>getPropertyResolvers(org.springframework.core.env.Environment environment, Class<?> sourceClass)voidprintBanner(org.springframework.core.env.Environment environment, Class<?> sourceClass, PrintStream out)Print the banner to the specified print stream.
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:BannerPrint the banner to the specified print stream.- Specified by:
 printBannerin interfaceBanner- Parameters:
 environment- the spring environmentsourceClass- the source class for the applicationout- 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)