org.sonatype.gshell.util.i18n
Class AggregateMessageSource
java.lang.Object
org.sonatype.gshell.util.i18n.AggregateMessageSource
- All Implemented Interfaces:
- MessageSource
public class AggregateMessageSource
- extends Object
- implements MessageSource
A message source which aggregates messages sources in order.
- Since:
- 2.0
- Author:
- Jason Dillon
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AggregateMessageSource
public AggregateMessageSource(List<MessageSource> sources)
AggregateMessageSource
public AggregateMessageSource(MessageSource... sources)
getSources
public List<MessageSource> getSources()
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 © 2008-2011 Sonatype. All Rights Reserved.