org.sonatype.sisu.goodies.i18n
Interface MessageSource

All Known Implementing Classes:
AggregateMessageSource, PrefixingMessageSource, ResourceBundleMessageSource

public interface MessageSource

Provides simple access to i18n messages.

Since:
1.0

Method Summary
 String format(String code, Object... args)
           
 String getMessage(String code)
           
 String getMessage(String code, String defaultValue)
           
 

Method Detail

getMessage

String getMessage(@NonNls
                  String code)
Throws:
ResourceNotFoundException

getMessage

String getMessage(@NonNls
                  String code,
                  @Nullable
                  String defaultValue)

format

String format(@NonNls
              String code,
              Object... args)
Throws:
ResourceNotFoundException


Copyright © 2008-2012 Sonatype, Inc.. All Rights Reserved.