public class CachingI18NBeanFactory extends Object implements I18NBeanFactory
Constructor and Description |
---|
CachingI18NBeanFactory(com.atlassian.vcache.VCacheFactory cacheFactory,
I18NBeanFactory defaultI18NBeanFactory,
com.atlassian.event.api.EventPublisher eventPublisher) |
Modifier and Type | Method and Description |
---|---|
I18NBean |
getI18NBean() |
I18NBean |
getI18NBean(Locale locale) |
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 |
unregisterEventListener() |
public CachingI18NBeanFactory(com.atlassian.vcache.VCacheFactory cacheFactory, I18NBeanFactory defaultI18NBeanFactory, com.atlassian.event.api.EventPublisher eventPublisher)
@PostConstruct public void initialiseCacheAndRegisterEventListener()
@PreDestroy public void unregisterEventListener()
@Nonnull public I18NBean getI18NBean(@Nonnull Locale locale)
getI18NBean
in interface I18NBeanFactory
locale
- locale for i18n@Nonnull public I18NBean getI18NBean()
getI18NBean
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)
Copyright © 2003–2017 Atlassian. All rights reserved.