Class ResourceBanner
java.lang.Object
org.springframework.boot.ResourceBanner
- All Implemented Interfaces:
Banner
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.boot.Banner
Banner.Mode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected @Nullable StringgetApplicationTitle(@Nullable Class<?> sourceClass) Return the application title that should be used for the source class.protected Stringprotected List<org.springframework.core.env.PropertyResolver> getPropertyResolvers(org.springframework.core.env.Environment environment, @Nullable Class<?> sourceClass) Return a mutable list of thePropertyResolverinstances that will be used to resolve placeholders.voidprintBanner(org.springframework.core.env.Environment environment, @Nullable 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, @Nullable 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 application ornullout- the output print stream
-
getPropertyResolvers
protected List<org.springframework.core.env.PropertyResolver> getPropertyResolvers(org.springframework.core.env.Environment environment, @Nullable Class<?> sourceClass) Return a mutable list of thePropertyResolverinstances 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
-
getBootVersion
-