public class CachingI18NBeanFactory extends Object implements I18NBeanFactory, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
Constructor and Description |
---|
CachingI18NBeanFactory(com.atlassian.cache.CacheFactory cacheFactory,
I18NBeanFactory defaultI18NBeanFactory,
com.atlassian.event.api.EventPublisher eventPublisher) |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
void |
destroy() |
I18NBean |
getI18NBean() |
I18NBean |
getI18NBean(Locale locale) |
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
|
public CachingI18NBeanFactory(com.atlassian.cache.CacheFactory cacheFactory, I18NBeanFactory defaultI18NBeanFactory, com.atlassian.event.api.EventPublisher eventPublisher)
public void afterPropertiesSet()
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
public void destroy()
destroy
in interface org.springframework.beans.factory.DisposableBean
public I18NBean getI18NBean(Locale locale)
getI18NBean
in interface I18NBeanFactory
locale
- locale for i18npublic 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)
wrapper
- Copyright © 2003–2016 Atlassian. All rights reserved.