org.nuiton.i18n.init
Class ClassPathI18nInitializer
java.lang.Object
org.nuiton.i18n.init.I18nInitializer
org.nuiton.i18n.init.ClassPathI18nInitializer
public class ClassPathI18nInitializer
- extends I18nInitializer
Implementation of a 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.
- Since:
- 1.1
- Author:
- tchemit
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
loader
protected ClassLoader loader
- class loader to use (optional)
extraURLs
protected URL[] extraURLs
ClassPathI18nInitializer
public ClassPathI18nInitializer()
ClassPathI18nInitializer
public ClassPathI18nInitializer(ClassLoader loader)
ClassPathI18nInitializer
public ClassPathI18nInitializer(ClassLoader loader,
URL[] extraURLs)
resolvURLs
public URL[] resolvURLs()
throws Exception
- Throws:
Exception
resolvBundles
public I18nBundle[] resolvBundles()
throws Exception
- Description copied from class:
I18nInitializer
- Resolv the bundles.
- Specified by:
resolvBundles in class I18nInitializer
- Returns:
- the bundles detected
- Throws:
Exception - if any pb while getting bundles
getExtraURLs
public URL[] getExtraURLs()
getLoader
public ClassLoader getLoader()
Copyright © 2004-2010 CodeLutin. All Rights Reserved.