public class ClassPathI18nInitializer extends I18nInitializer
I18nInitializer using all i18n resources (from
artifacts) discovered in classpath.
Will scan all classpath.
Note: No order can be predicted with this implementation on bundles.| Modifier and Type | Field and Description |
|---|---|
protected URL[] |
extraURLs |
protected ClassLoader |
loader
class loader to use (optional)
|
encoding, messageFormatter, missingKeyReturnNull| Constructor and Description |
|---|
ClassPathI18nInitializer() |
ClassPathI18nInitializer(ClassLoader loader) |
ClassPathI18nInitializer(ClassLoader loader,
URL[] extraURLs) |
| Modifier and Type | Method and Description |
|---|---|
URL[] |
getExtraURLs() |
ClassLoader |
getLoader() |
I18nBundle[] |
resolvBundles()
Resolv the bundles.
|
URL[] |
resolvURLs() |
getEncoding, getMessageFormatter, isMissingKeyReturnNull, resolvBundles, setEncoding, setMessageFormatter, setMissingKeyReturnNullprotected ClassLoader loader
protected URL[] extraURLs
public ClassPathI18nInitializer()
public ClassPathI18nInitializer(ClassLoader loader)
public ClassPathI18nInitializer(ClassLoader loader, URL[] extraURLs)
public I18nBundle[] resolvBundles() throws Exception
I18nInitializerresolvBundles in class I18nInitializerException - if any pb while getting bundlespublic URL[] getExtraURLs()
public ClassLoader getLoader()
Copyright © 2004–2014 CodeLutin. All rights reserved.