|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuiton.i18n.init.I18nInitializer
public abstract class I18nInitializer
Abstract object to resolv I18nBundle and prepare initialization of
I18n.
| Field Summary | |
|---|---|
protected Charset |
encoding
Encoding used to load i18n bundles. |
protected I18nMessageFormatter |
messageFormatter
Message formatter used in I18n to produce final translated
messages. |
| Constructor Summary | |
|---|---|
protected |
I18nInitializer()
|
| Method Summary | |
|---|---|
Charset |
getEncoding()
Get the Charset encoding used for i18n Properties file loading. |
I18nMessageFormatter |
getMessageFormatter()
Get the I18nMessageFormatter to use on each i18n message
translation. |
abstract I18nBundle[] |
resolvBundles()
Resolv the bundles. |
I18nBundle[] |
resolvBundles(URL... urls)
|
void |
setEncoding(Charset encoding)
Set encoding to use for i18n Properties file loading. |
void |
setMessageFormatter(I18nMessageFormatter messageFormatter)
Set messageFormatter to use on each i18n message translation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Charset encoding
protected I18nMessageFormatter messageFormatter
I18n to produce final translated
messages.
| Constructor Detail |
|---|
protected I18nInitializer()
| Method Detail |
|---|
public abstract I18nBundle[] resolvBundles()
throws Exception
Exception - if any pb while getting bundles
public I18nBundle[] resolvBundles(URL... urls)
throws Exception
Exceptionpublic Charset getEncoding()
Charset encoding used for i18n Properties file loading.
public void setEncoding(Charset encoding)
throws NullPointerException
encoding to use for i18n Properties file loading.
encoding - Charset encoding to use
NullPointerException - if encoding is nullpublic I18nMessageFormatter getMessageFormatter()
I18nMessageFormatter to use on each i18n message
translation.
public void setMessageFormatter(I18nMessageFormatter messageFormatter)
throws NullPointerException
messageFormatter to use on each i18n message translation.
messageFormatter - I18nMessageFormatter to use
NullPointerException - if messageFormatter is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||