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
-
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) protected String
getApplicationVersion
(Class<?> sourceClass) protected String
protected List<org.springframework.core.env.PropertyResolver>
getPropertyResolvers
(org.springframework.core.env.Environment environment, Class<?> sourceClass) void
printBanner
(org.springframework.core.env.Environment environment, Class<?> sourceClass, PrintStream out) Print the banner to the specified print stream.
-
Constructor Details
-
ResourceBanner
public ResourceBanner(org.springframework.core.io.Resource resource)
-
-
Method Details
-
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 interfaceBanner
- Parameters:
environment
- the spring environmentsourceClass
- the source class for the applicationout
- the output print stream
-
getPropertyResolvers
-
getApplicationVersion
-
getBootVersion
-
getApplicationTitle
-