public class Banner extends Object implements Jooby.Module
Prints out an ASCII art banner on startup using jfiglet.
package com.myapp;
{
use(new Banner());
}
Prints out the value of application.name which here is myapp. Or you
can specify the text to prints out:
package com.myapp;
{
use(new Banner("my awesome app"));
}
You can pick and use the font of your choice via font(String) option:
package com.myapp;
{
use(new Banner("my awesome app").font("slant"));
}
Font are distributed within the library inside the /flf classpath folder. A full
list of fonts is available here.
| Modifier and Type | Method and Description |
|---|---|
void |
configure(Env env,
com.typesafe.config.Config conf,
com.google.inject.Binder binder) |
Banner |
font(String font) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconfigCopyright © 2016. All rights reserved.