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

Field Detail

header

protected java.util.List<java.lang.String> header

body

protected java.util.List<java.lang.String> body

footer

protected java.util.List<java.lang.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(java.lang.String line)

setFooter

public final void setFooter(MuleContext context)

doHeader

protected void doHeader(MuleContext context)

doBody

protected void doBody(java.lang.String line)

doFooter

protected void doFooter(MuleContext context)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2003-2010 MuleSoft, Inc.. All Rights Reserved.