public class DefaultI18NBeanFactory extends Object implements I18NBeanFactory, org.springframework.beans.factory.DisposableBean
I18NBean
s which will return a bean either for the default or setup locale.Modifier and Type | Field and Description |
---|---|
static String |
HELP_PATHS_RESOURCE_NAME |
static String |
HELP_PATHS_RESOURCE_TYPE |
Constructor and Description |
---|
DefaultI18NBeanFactory() |
DefaultI18NBeanFactory(com.atlassian.plugin.PluginAccessor pluginAccessor)
Instantiates a factory producing
I18NBean s using the LocaleManager.DEFAULT_LOCALE . |
DefaultI18NBeanFactory(com.atlassian.plugin.PluginAccessor pluginAccessor,
com.atlassian.config.ApplicationConfiguration applicationConfig)
Instantiates a factory producing
I18NBean s using the SessionKeys.LOCALE_FOR_SETUP and LocaleManager.DEFAULT_LOCALE as a fallback. |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
I18NBean |
getI18NBean() |
I18NBean |
getI18NBean(Locale locale) |
void |
setModeManager(I18nModeManager modeManager) |
void |
setPluginEventManager(com.atlassian.plugin.event.PluginEventManager pluginEventManager) |
public static final String HELP_PATHS_RESOURCE_NAME
public static final String HELP_PATHS_RESOURCE_TYPE
public DefaultI18NBeanFactory()
public DefaultI18NBeanFactory(com.atlassian.plugin.PluginAccessor pluginAccessor)
I18NBean
s using the LocaleManager.DEFAULT_LOCALE
.public DefaultI18NBeanFactory(com.atlassian.plugin.PluginAccessor pluginAccessor, com.atlassian.config.ApplicationConfiguration applicationConfig)
I18NBean
s using the SessionKeys.LOCALE_FOR_SETUP
and LocaleManager.DEFAULT_LOCALE
as a fallback.public I18NBean getI18NBean(Locale locale)
getI18NBean
in interface I18NBeanFactory
locale
- locale for i18npublic I18NBean getI18NBean()
getI18NBean
in interface I18NBeanFactory
public void setModeManager(I18nModeManager modeManager)
public void setPluginEventManager(com.atlassian.plugin.event.PluginEventManager pluginEventManager)
Copyright © 2003–2016 Atlassian. All rights reserved.