org.apache.geronimo.gshell.ansi
Class RenderMessageSource

java.lang.Object
  extended by org.apache.geronimo.gshell.ansi.RenderMessageSource
All Implemented Interfaces:
MessageSource

public class RenderMessageSource
extends Object
implements MessageSource

Message source adapter which supports automatic ANSI color rendering.

Version:
$Rev: 571626 $ $Date: 2007-08-31 15:32:08 -0700 (Fri, 31 Aug 2007) $

Constructor Summary
RenderMessageSource(MessageSource source)
           
 
Method Summary
 String format(String code, Object... args)
           
 String getMessage(String code)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RenderMessageSource

public RenderMessageSource(MessageSource source)
Method Detail

getMessage

public String getMessage(String code)
Specified by:
getMessage in interface MessageSource

format

public String format(String code,
                     Object... args)
Specified by:
format in interface MessageSource


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.