public class

DefaultTranslationStoreFactory

extends Object
implements TranslationStoreFactory
java.lang.Object
   ↳ com.atlassian.jira.web.bean.i18n.DefaultTranslationStoreFactory

Class Overview

Factory for TranslationStore instances. The default behaviour is:

  • in OnDemand, creates a byte[]-backed translation store to save memory (at the cost of extra CPU), and
  • in BTF, creates a standard string-backed translation store
The default can be overridden by setting the -D{@value #COMPRESS_I18N_PROPERTY} system property to "true" or "false".

Summary

Public Constructors
DefaultTranslationStoreFactory(JiraProperties properties)
Public Methods
TranslationStore createTranslationStore(Map<StringString> bundles)
Creates the appropriate TranslationStore depending on whether we're running in OnDemand or not.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.web.bean.i18n.TranslationStoreFactory

Public Constructors

public DefaultTranslationStoreFactory (JiraProperties properties)

Public Methods

public TranslationStore createTranslationStore (Map<StringString> bundles)

Creates the appropriate TranslationStore depending on whether we're running in OnDemand or not.

Parameters
bundles a Map containing the bundles
Returns
  • a new TranslationStore