|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuiton.i18n.init.I18nInitializer
org.nuiton.i18n.init.DefaultI18nInitializer
public class DefaultI18nInitializer
Default implementation of a I18nInitializer using the default i18n
implementation (one unique bundle with a definition properties file).
| Field Summary | |
|---|---|
static String |
BUNDLE_DEF_ENCODING
|
static String |
BUNDLE_DEF_LOCALES
|
static String |
BUNDLE_DEF_VERSION
|
protected String |
bundleName
the name of the bundle. |
static String |
BUNDLES_FOR_LOCALE
|
static String |
DEFAULT_I18N_PATH
|
protected URL |
definitionURL
location of the definition file. |
protected String |
i18nPath
i18n path where to seek for resources (optional). |
protected ClassLoader |
loader
class loader to use (optional). |
static String |
UNIQUE_BUNDLE_DEF
|
static String |
UNIQUE_BUNDLE_ENTRY
|
| Fields inherited from class org.nuiton.i18n.init.I18nInitializer |
|---|
encoding, messageFormatter, missingKeyReturnNull |
| Constructor Summary | |
|---|---|
DefaultI18nInitializer(String bundleName)
|
|
DefaultI18nInitializer(String bundleName,
ClassLoader loader)
|
|
DefaultI18nInitializer(String bundleName,
ClassLoader loader,
String i18nPath)
|
|
| Method Summary | |
|---|---|
String |
getBundleName()
|
URL |
getDefinitionURL()
|
String |
getI18nPath()
|
ClassLoader |
getLoader()
|
protected URL |
getResourceURL(String resource)
|
I18nBundle[] |
resolvBundles()
Resolv the bundles. |
String |
resolvDefinition(Properties properties)
|
URL[] |
resolvURLs(String prefixURL,
Properties definition)
|
protected void |
setI18nPath(String i18nPath)
|
protected void |
setLoader(ClassLoader loader)
|
| Methods inherited from class org.nuiton.i18n.init.I18nInitializer |
|---|
getEncoding, getMessageFormatter, isMissingKeyReturnNull, resolvBundles, setEncoding, setMessageFormatter, setMissingKeyReturnNull |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static String UNIQUE_BUNDLE_DEF
public static String UNIQUE_BUNDLE_ENTRY
public static String BUNDLE_DEF_LOCALES
public static String BUNDLE_DEF_VERSION
public static String BUNDLE_DEF_ENCODING
public static String BUNDLES_FOR_LOCALE
protected final String bundleName
protected ClassLoader loader
protected String i18nPath
protected URL definitionURL
public static final String DEFAULT_I18N_PATH
| Constructor Detail |
|---|
public DefaultI18nInitializer(String bundleName)
throws NullPointerException
NullPointerException
public DefaultI18nInitializer(String bundleName,
ClassLoader loader)
throws NullPointerException
NullPointerException
public DefaultI18nInitializer(String bundleName,
ClassLoader loader,
String i18nPath)
throws NullPointerException
NullPointerException| Method Detail |
|---|
public String getBundleName()
public ClassLoader getLoader()
public String getI18nPath()
protected void setLoader(ClassLoader loader)
protected void setI18nPath(String i18nPath)
protected URL getResourceURL(String resource)
public String resolvDefinition(Properties properties)
throws Exception
Exception
public URL getDefinitionURL()
throws NullPointerException
NullPointerException
public URL[] resolvURLs(String prefixURL,
Properties definition)
throws Exception
Exception
public I18nBundle[] resolvBundles()
throws Exception
I18nInitializer
resolvBundles in class I18nInitializerException - if any pb while getting bundles
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||