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