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 |
static String |
I18N_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() |
static I18NBean |
getDefaultI18NBean()
Deprecated.
since 7.0.1
|
@NonNull I18NBean |
getI18NBean() |
@NonNull I18NBean |
getI18NBean(@NonNull Locale locale) |
@NonNull String |
getStateHash() |
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 static final String I18N_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.@Deprecated public static I18NBean getDefaultI18NBean()
public @NonNull I18NBean getI18NBean(@NonNull Locale locale)
getI18NBean
in interface I18NBeanFactory
locale
- locale for i18npublic @NonNull I18NBean getI18NBean()
getI18NBean
in interface I18NBeanFactory
public @NonNull String getStateHash()
getStateHash
in interface I18NBeanFactory
public void setModeManager(I18nModeManager modeManager)
public void setPluginEventManager(com.atlassian.plugin.event.PluginEventManager pluginEventManager)
Copyright © 2003–2019 Atlassian. All rights reserved.