org.sonatype.sisu.goodies.i18n
Class I18N

java.lang.Object
  extended by org.sonatype.sisu.goodies.i18n.I18N

public class I18N
extends Object

Internationalization access.

Since:
1.0

Method Summary
static
<T extends MessageBundle>
T
create(Class<T> type)
          Returns a proxy to the given MessageBundle type.
static MessageSource of(Class... types)
          Returns a MessageSource for the given types.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

of

public static MessageSource of(Class... types)
Returns a MessageSource for the given types.

Parameters:
types - One or more classes
Returns:
MessageSource instance; never null

create

public static <T extends MessageBundle> T create(Class<T> type)
Returns a proxy to the given MessageBundle type.

Returns:
MessageBundle proxy; never null


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