org.nuiton.i18n.init
Class UserI18nInitializer
java.lang.Object
org.nuiton.i18n.init.I18nInitializer
org.nuiton.i18n.init.DefaultI18nInitializer
org.nuiton.i18n.init.UserI18nInitializer
public class UserI18nInitializer
- extends DefaultI18nInitializer
Initializer which expose i18n resources in the userDirectory, then
use resources from this user directories.
- Since:
- 1.1
- Author:
- tchemit
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
userDirectory
protected final File userDirectory
- the user directory where to store the i18n resources.
delegate
protected final DefaultI18nInitializer delegate
- the delegate initializer to obtain default i18n resources to put in user
directory.
UserI18nInitializer
public UserI18nInitializer(File userDirectory,
DefaultI18nInitializer delegate)
throws NullPointerException
- Throws:
NullPointerException
UserI18nInitializer
public UserI18nInitializer(String i18nPath,
File userDirectory,
DefaultI18nInitializer delegate)
throws NullPointerException
- Throws:
NullPointerException
getUserDirectory
public File getUserDirectory()
getDelegate
public DefaultI18nInitializer getDelegate()
resolvBundles
public I18nBundle[] resolvBundles()
throws Exception
- Description copied from class:
I18nInitializer
- Resolv the bundles.
- Overrides:
resolvBundles in class DefaultI18nInitializer
- Returns:
- the bundles detected
- Throws:
Exception - if any pb while getting bundles
createUserI18nLayout
protected void createUserI18nLayout(File directory)
throws Exception
- Creates the user i18n structure.
will use the default initializer to obtain i18n resources from default
system, then copy them to the user directory.
- Parameters:
directory - the directory where to export i18n resources
- Throws:
Exception - if any pb
updateUserI18nLayout
public void updateUserI18nLayout(File directory,
I18nBundle[] bundles)
- Hook to update the user i18n structure.
If you wants to do something specific, overrides this method.
- Parameters:
directory - the user directory where are i18n resourcesbundles - the user i18n bundles
Copyright © 2004-2011 CodeLutin. All Rights Reserved.