Class CachingI18NBeanFactory
java.lang.Object
com.atlassian.confluence.impl.i18n.CachingI18NBeanFactory
- All Implemented Interfaces:
I18NBeanFactory
-
Constructor Summary
ConstructorsConstructorDescriptionCachingI18NBeanFactory(VCacheFactory cacheFactory, I18NBeanFactory defaultI18NBeanFactory, com.atlassian.event.api.EventPublisher eventPublisher) -
Method Summary
Modifier and TypeMethodDescription@NonNull I18NBean@NonNull I18NBeangetI18NBean(@NonNull Locale locale) @NonNull StringvoidvoidvoidonPluginEvent(PluginEvent event) This listens to the confluence-level plugin events, which have come across the cluster.voidvoidonPluginSystemPluginDisabledEvent(com.atlassian.plugin.event.events.PluginDisabledEvent pluginDisabledEvent) voidonPluginSystemPluginEnabledEvent(com.atlassian.plugin.event.events.PluginEnabledEvent pluginEnabledEvent) voidonPluginSystemPluginUpgradedEvent(com.atlassian.plugin.event.events.PluginUpgradedEvent pluginUpgradedEvent) voidonRemoteEvent(ClusterEventWrapper wrapper) Listens for cluster-wrapped events that this class needs to worry about, unwraps them and handles them accordinglyvoidonTranslationTransformStateChangedEvent(TranslationTransformStateChangedEvent translationTransformStateChangedEvent) void
-
Constructor Details
-
CachingI18NBeanFactory
public CachingI18NBeanFactory(VCacheFactory cacheFactory, I18NBeanFactory defaultI18NBeanFactory, com.atlassian.event.api.EventPublisher eventPublisher)
-
-
Method Details
-
initialiseCacheAndRegisterEventListener
@PostConstruct public void initialiseCacheAndRegisterEventListener() -
unregisterEventListener
@PreDestroy public void unregisterEventListener() -
getI18NBean
- Specified by:
getI18NBeanin interfaceI18NBeanFactory- Parameters:
locale- locale for i18n- Returns:
- i18n bean for specified locale
-
getI18NBean
- Specified by:
getI18NBeanin interfaceI18NBeanFactory- Returns:
- i18n bean for the system default locale
-
getStateHash
- Specified by:
getStateHashin interfaceI18NBeanFactory- Returns:
- a hash of the current state of this factory.
-
onGlobalSettingsChangedEvent
-
onPluginFrameworkStartedEvent
-
onPluginEvent
This listens to the confluence-level plugin events, which have come across the cluster. seePluginEvent -
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
Listens for cluster-wrapped events that this class needs to worry about, unwraps them and handles them accordingly -
onTranslationTransformStateChangedEvent
@EventListener public void onTranslationTransformStateChangedEvent(TranslationTransformStateChangedEvent translationTransformStateChangedEvent)
-