org.mule.util
Class SplashScreen
java.lang.Object
org.mule.util.SplashScreen
- Direct Known Subclasses:
- ApplicationShutdownSplashScreen, ApplicationStartupSplashScreen, MuleContainerStartupSplashScreen, ServerShutdownSplashScreen, ServerStartupSplashScreen
public abstract class SplashScreen
- extends Object
Implements singleton pattern to allow different splash-screen implementations
following the concept of header, body, and footer. Header and footer are
reserved internally to Mule but body can be used to customize splash-screen
output. External code can e.g. hook into the start-up splash-screen as follows:
SplashScreen splashScreen = SplashScreen.getInstance(ServerStartupSplashScreen.class);
splashScreen.addBody("Some extra text");
header
protected List<String> header
body
protected List<String> body
footer
protected List<String> footer
SplashScreen
protected SplashScreen()
setHeader
public final void setHeader(MuleContext context)
- Setting the header clears body and footer assuming a new
splash-screen is built.
addBody
public final void addBody(String line)
setFooter
public final void setFooter(MuleContext context)
miniSplash
public static String miniSplash(String message)
doHeader
protected void doHeader(MuleContext context)
doBody
protected void doBody(String line)
doFooter
protected void doFooter(MuleContext context)
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.