| Modifiers | Name | Description |
|---|---|---|
static class |
GrailsBanner.DefaultVersionFormatter |
The default implementation of the VersionsFormatter. |
static enum |
GrailsBanner.DefaultVersionOption |
Enumeration of default version options. |
static enum |
GrailsBanner.OptionalVersionOption |
Enumeration of optional version options. |
static enum |
GrailsBanner.VersionOption |
Enumeration of supported version options. |
interface |
GrailsBanner.VersionsFormatter |
Strategy interface for formatting version information into printable lines. |
| Type | Name and description |
|---|---|
int |
artPaddingBottom |
java.lang.String |
bannerFile |
int |
bannerPaddingBottom |
int |
bannerPaddingTop |
| Constructor and description |
|---|
GrailsBanner() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
protected java.lang.String |
createBannerArt(Environment environment)Creates the banner art to be displayed. |
|
protected java.util.Map<java.lang.String, java.lang.String> |
createBannerVersions(Environment env)Creates a map of versions to be displayed in the banner. |
|
protected GrailsBanner.VersionsFormatter |
createVersionsFormatter()Creates the versions formatter to format the version information. |
|
void |
printBanner(Environment environment, java.lang.Class<?> sourceClass, java.io.PrintStream out)Prints the banner to the specified PrintStream. |
|
protected boolean |
shouldDisplayArt(Environment env)Determines whether to display the banner art. |
|
protected boolean |
shouldDisplayVersions(Environment env)Determines whether to display the version information. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |
Creates the banner art to be displayed.
environment - the current environmentCreates a map of versions to be displayed in the banner.
env - the current envCreates the versions formatter to format the version information.
Prints the banner to the specified PrintStream.
environment - the current environmentsourceClass - the source classout - the PrintStream to print toDetermines whether to display the banner art.
env - the current environmentDetermines whether to display the version information.
env - the current environment