com.atlassian.confluence.util.i18n
Class CachingI18NBeanFactory
java.lang.Object
com.atlassian.confluence.util.i18n.CachingI18NBeanFactory
- All Implemented Interfaces:
- I18NBeanFactory, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean
public class CachingI18NBeanFactory
- extends Object
- implements I18NBeanFactory, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CachingI18NBeanFactory
public CachingI18NBeanFactory(com.atlassian.cache.CacheFactory cacheFactory,
I18NBeanFactory defaultI18NBeanFactory,
com.atlassian.event.api.EventPublisher eventPublisher)
afterPropertiesSet
public void afterPropertiesSet()
- Specified by:
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
destroy
public void destroy()
- Specified by:
destroy
in interface org.springframework.beans.factory.DisposableBean
getI18NBean
public I18NBean getI18NBean(Locale locale)
- Specified by:
getI18NBean
in interface I18NBeanFactory
- Parameters:
locale
- locale for i18n
- Returns:
- i18n bean for specified locale
getI18NBean
public I18NBean getI18NBean()
- Specified by:
getI18NBean
in interface I18NBeanFactory
- Returns:
- i18n bean for the system default locale
onGlobalSettingsChangedEvent
@EventListener
public void onGlobalSettingsChangedEvent(GlobalSettingsChangedEvent event)
onPluginFrameworkStartedEvent
@EventListener
public void onPluginFrameworkStartedEvent(PluginFrameworkStartedEvent event)
onPluginEvent
@EventListener
public void onPluginEvent(PluginEvent event)
- This listens to the confluence-level plugin events, which have come across the cluster. see
PluginEvent
onPluginSystemPluginEnabledEvent
@EventListener
public void onPluginSystemPluginEnabledEvent(com.atlassian.plugin.event.events.PluginEnabledEvent pluginEnabledEvent)
onPluginSystemPluginDisabledEvent
@EventListener
public void onPluginSystemPluginDisabledEvent(com.atlassian.plugin.event.events.PluginDisabledEvent pluginDisabledEvent)
onPluginSystemPluginUpgradedEvent
@EventListener
public void onPluginSystemPluginUpgradedEvent(com.atlassian.plugin.event.events.PluginUpgradedEvent pluginUpgradedEvent)
onRemoteEvent
@EventListener
public void onRemoteEvent(ClusterEventWrapper wrapper)
- Listens for cluster-wrapped events that this class needs to worry about, unwraps them and handles them accordingly
- Parameters:
wrapper
-
Copyright © 2003–2015 Atlassian. All rights reserved.