public class

MockResourceBundleLoader

extends Object
implements ResourceBundleLoader
java.lang.Object
   ↳ com.atlassian.jira.util.resourcebundle.MockResourceBundleLoader

Summary

Public Constructors
MockResourceBundleLoader()
MockResourceBundleLoader(Locale locale)
Public Methods
MockResourceBundleLoader helpText()
Returns a loader that will search for resources associated with HelpUrls.
MockResourceBundleLoader i18n()
Returns a loader that will search for resources associated with a I18nHelper.
ResourceBundleLoader.LoadResult load()
Perform a search and load all the configured resources.
MockResourceBundleLoader locale(Locale locale)
Returns a loader that will search for resources associated with the passed Locale.
MockResourceBundleLoader registerHelp(Map<StringString> text, Plugin... plugins)
MockResourceBundleLoader registerI18n(Map<StringString> text, Plugin... plugins)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.util.resourcebundle.ResourceBundleLoader

Public Constructors

public MockResourceBundleLoader ()

public MockResourceBundleLoader (Locale locale)

Public Methods

public MockResourceBundleLoader helpText ()

Returns a loader that will search for resources associated with HelpUrls. The Locale used by the search remains unchanged. This method will not mutate this and as such the caller must use the returned loader to find the right type of resources.

Returns
  • a loader that will search for resources associated with HelpUrls. The Locale used by the search remains unchanged.

public MockResourceBundleLoader i18n ()

Returns a loader that will search for resources associated with a I18nHelper. The Locale used by the search remains unchanged. This method will not mutate this and as such the caller must use the returned loader to find the right type of resources.

Returns
  • a loader that will search for resources associated with a I18nHelper. The Locale used by the search remains unchanged.

public ResourceBundleLoader.LoadResult load ()

Perform a search and load all the configured resources.

Returns
  • the loaded resources with the plugins that provided them.

public MockResourceBundleLoader locale (Locale locale)

Returns a loader that will search for resources associated with the passed Locale. This method will not mutate this and as such the caller must use the returned loader to search against the passed Locale.

Parameters
locale the locale.
Returns
  • a loader that will search for resources associated with the passed Locale. The type of search remains unchanged.

public MockResourceBundleLoader registerHelp (Map<StringString> text, Plugin... plugins)

public MockResourceBundleLoader registerI18n (Map<StringString> text, Plugin... plugins)