org.mule.util
Class SplashScreen

java.lang.Object
  extended by 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");
 


Field Summary
protected  List<String> body
           
protected  List<String> footer
           
protected  List<String> header
           
 
Constructor Summary
protected SplashScreen()
           
 
Method Summary
 void addBody(String line)
           
protected  void doBody(String line)
           
protected  void doFooter(MuleContext context)
           
protected  void doHeader(MuleContext context)
           
static String miniSplash(String message)
           
 void setFooter(MuleContext context)
           
 void setHeader(MuleContext context)
          Setting the header clears body and footer assuming a new splash-screen is built.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

header

protected List<String> header

body

protected List<String> body

footer

protected List<String> footer
Constructor Detail

SplashScreen

protected SplashScreen()
Method Detail

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.