Banner.Mode
Constructor and Description |
---|
ResourceBanner(Resource resource) |
Modifier and Type | Method and Description |
---|---|
protected String |
getApplicationTitle(Class<?> sourceClass)
Return the application title that should be used for the source class.
|
protected String |
getApplicationVersion(Class<?> sourceClass) |
protected String |
getBootVersion() |
protected List<PropertyResolver> |
getPropertyResolvers(Environment environment,
Class<?> sourceClass)
Return a mutable list of the
PropertyResolver instances that will be used
to resolve placeholders. |
void |
printBanner(Environment environment,
Class<?> sourceClass,
PrintStream out)
Print the banner to the specified print stream.
|
public ResourceBanner(Resource resource)
public void printBanner(Environment environment, Class<?> sourceClass, PrintStream out)
Banner
printBanner
in interface Banner
environment
- the spring environmentsourceClass
- the source class for the applicationout
- the output print streamprotected List<PropertyResolver> getPropertyResolvers(Environment environment, Class<?> sourceClass)
PropertyResolver
instances that will be used
to resolve placeholders.environment
- the environmentsourceClass
- the source classprotected String getApplicationTitle(Class<?> sourceClass)
Package.getImplementationTitle()
.sourceClass
- the source classprotected String getBootVersion()