@ParametersAreNonnullByDefault @ReturnValuesAreNonnullByDefault public class CachingI18NBeanFactory extends Object implements I18NBeanFactory
| Constructor and Description |
|---|
CachingI18NBeanFactory(com.atlassian.cache.CacheFactory cacheFactory,
I18NBeanFactory delegate,
com.atlassian.event.api.EventPublisher eventPublisher) |
| Modifier and Type | Method and Description |
|---|---|
I18NBean |
getI18NBean() |
I18NBean |
getI18NBean(Locale locale) |
String |
getStateHash() |
void |
initialiseCacheAndRegisterEventListener() |
void |
onGlobalSettingsChangedEvent(GlobalSettingsChangedEvent event) |
void |
onPluginEvent(PluginEvent event)
This listens to the confluence-level plugin events, which have come across the cluster.
|
void |
onPluginFrameworkStartedEvent(PluginFrameworkStartedEvent event) |
void |
onPluginSystemPluginDisabledEvent(com.atlassian.plugin.event.events.PluginDisabledEvent pluginDisabledEvent) |
void |
onPluginSystemPluginEnabledEvent(com.atlassian.plugin.event.events.PluginEnabledEvent pluginEnabledEvent) |
void |
onPluginSystemPluginUpgradedEvent(com.atlassian.plugin.event.events.PluginUpgradedEvent pluginUpgradedEvent) |
void |
onRemoteEvent(ClusterEventWrapper wrapper)
Listens for cluster-wrapped events that this class needs to worry about, unwraps them and handles them
accordingly
|
void |
onTranslationTransformStateChangedEvent(TranslationTransformStateChangedEvent translationTransformStateChangedEvent) |
void |
unregisterEventListener() |
public CachingI18NBeanFactory(com.atlassian.cache.CacheFactory cacheFactory,
I18NBeanFactory delegate,
com.atlassian.event.api.EventPublisher eventPublisher)
@PostConstruct public void initialiseCacheAndRegisterEventListener()
@PreDestroy public void unregisterEventListener()
public I18NBean getI18NBean(Locale locale)
getI18NBean in interface I18NBeanFactorylocale - locale for i18npublic I18NBean getI18NBean()
getI18NBean in interface I18NBeanFactorypublic String getStateHash()
getStateHash in interface I18NBeanFactory@EventListener public void onGlobalSettingsChangedEvent(GlobalSettingsChangedEvent event)
@EventListener public void onPluginFrameworkStartedEvent(PluginFrameworkStartedEvent event)
@EventListener public void onPluginEvent(PluginEvent event)
PluginEvent@EventListener public void onPluginSystemPluginEnabledEvent(com.atlassian.plugin.event.events.PluginEnabledEvent pluginEnabledEvent)
@EventListener public void onPluginSystemPluginDisabledEvent(com.atlassian.plugin.event.events.PluginDisabledEvent pluginDisabledEvent)
@EventListener public void onPluginSystemPluginUpgradedEvent(com.atlassian.plugin.event.events.PluginUpgradedEvent pluginUpgradedEvent)
@EventListener public void onRemoteEvent(ClusterEventWrapper wrapper)
@EventListener public void onTranslationTransformStateChangedEvent(TranslationTransformStateChangedEvent translationTransformStateChangedEvent)
Copyright © 2003–2022 Atlassian. All rights reserved.