Package org.springframework.boot
Class ResourceBanner
java.lang.Object
org.springframework.boot.ResourceBanner
- All Implemented Interfaces:
Banner
Banner implementation that prints from a source text
Resource
.- Since:
- 1.2.0
- Author:
- Phillip Webb, Vedran Pavic, Toshiaki Maki, Krzysztof Krason
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.boot.Banner
Banner.Mode
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
getApplicationTitle
(Class<?> sourceClass) Return the application title that should be used for the source class.protected String
getApplicationVersion
(Class<?> sourceClass) protected String
protected List<PropertyResolver>
getPropertyResolvers
(Environment environment, Class<?> sourceClass) Return a mutable list of thePropertyResolver
instances that will be used to resolve placeholders.void
printBanner
(Environment environment, Class<?> sourceClass, PrintStream out) Print the banner to the specified print stream.
-
Constructor Details
-
ResourceBanner
-
-
Method Details
-
printBanner
Description copied from interface:Banner
Print the banner to the specified print stream.- Specified by:
printBanner
in interfaceBanner
- Parameters:
environment
- the spring environmentsourceClass
- the source class for the applicationout
- the output print stream
-
getPropertyResolvers
protected List<PropertyResolver> getPropertyResolvers(Environment environment, Class<?> sourceClass) Return a mutable list of thePropertyResolver
instances that will be used to resolve placeholders.- Parameters:
environment
- the environmentsourceClass
- the source class- Returns:
- a mutable list of property resolvers
-
getApplicationTitle
Return the application title that should be used for the source class. By default will usePackage.getImplementationTitle()
.- Parameters:
sourceClass
- the source class- Returns:
- the application title
-
getApplicationVersion
-
getBootVersion
-