Package org.springframework.boot
Interface Banner
- All Known Implementing Classes:
ImageBanner
,ResourceBanner
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface Banner
Interface class for writing a banner programmatically.- Since:
- 1.2.0
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Banner.Mode
An enumeration of possible values for configuring the Banner.
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
printBanner(org.springframework.core.env.Environment environment, Class<?> sourceClass, PrintStream out)
Print the banner to the specified print stream.
Method Detail
printBanner
void printBanner(org.springframework.core.env.Environment environment, Class<?> sourceClass, PrintStream out)
Print the banner to the specified print stream.- Parameters:
environment
- the spring environmentsourceClass
- the source class for the applicationout
- the output print stream