com.atlassian.jira.web.bean.i18n
Class DefaultTranslationStoreFactory
java.lang.Object
com.atlassian.jira.web.bean.i18n.DefaultTranslationStoreFactory
- All Implemented Interfaces:
- TranslationStoreFactory
public class DefaultTranslationStoreFactory
- extends Object
- implements TranslationStoreFactory
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
system property to "true" or "false".
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultTranslationStoreFactory
public DefaultTranslationStoreFactory(JiraProperties properties)
createTranslationStore
public TranslationStore createTranslationStore(Map<String,String> bundles)
- Description copied from interface:
TranslationStoreFactory
- Creates the appropriate TranslationStore depending on whether we're running in OnDemand or not.
- Specified by:
createTranslationStore
in interface TranslationStoreFactory
- Parameters:
bundles
- a Map containing the bundles
- Returns:
- a new TranslationStore
Copyright © 2002-2014 Atlassian. All Rights Reserved.