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 |
---|---|
@NonNull I18NBean |
getI18NBean() |
@NonNull I18NBean |
getI18NBean(@NonNull Locale locale) |
@NonNull 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 |
unregisterEventListener() |
public CachingI18NBeanFactory(com.atlassian.vcache.VCacheFactory cacheFactory, I18NBeanFactory defaultI18NBeanFactory, com.atlassian.event.api.EventPublisher eventPublisher)
@PostConstruct public void initialiseCacheAndRegisterEventListener()
@PreDestroy public void unregisterEventListener()
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
@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–2020 Atlassian. All rights reserved.