com.atlassian.confluence.util.i18n
Class CachingI18NBeanFactory

java.lang.Object
  extended by 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


Constructor Summary
CachingI18NBeanFactory(com.atlassian.cache.CacheFactory cacheFactory, I18NBeanFactory defaultI18NBeanFactory, com.atlassian.event.api.EventPublisher eventPublisher)
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachingI18NBeanFactory

public CachingI18NBeanFactory(com.atlassian.cache.CacheFactory cacheFactory,
                              I18NBeanFactory defaultI18NBeanFactory,
                              com.atlassian.event.api.EventPublisher eventPublisher)
Method Detail

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.