public class

DebuggingResourceBundle

extends ResourceBundle
java.lang.Object
   ↳ java.util.ResourceBundle
     ↳ com.atlassian.jira.util.resourcebundle.DebuggingResourceBundle

Class Overview

This java.util.ResourceBundle can dynamically read a properties file for keys. This is reasonable efficient in that it only re-reads the keys if the file modification date has changed.

This is intended to be used ONLY in development so that changes the language files can be seen without restarting JIRA

Summary

Fields
public static final Logger log
[Expand]
Inherited Fields
From class java.util.ResourceBundle
Public Constructors
DebuggingResourceBundle(File propertiesFile, Locale locale)
Public Methods
static DebuggingResourceBundle getDebuggingResourceBundle(String baseName, Locale locale)
See getBundle(String, java.util.Locale) for an example of the semantics

* This should be re-implemented using Java 1.6 ResourceBundle.Control objects and hence allow the normal ResourceBundle loading mechanism to be used.

Enumeration<String> getKeys()
boolean isStale()
String toString()
Protected Methods
Object handleGetObject(String key)
[Expand]
Inherited Methods
From class java.util.ResourceBundle
From class java.lang.Object

Fields

public static final Logger log

Public Constructors

public DebuggingResourceBundle (File propertiesFile, Locale locale)

Public Methods

public static DebuggingResourceBundle getDebuggingResourceBundle (String baseName, Locale locale)

See getBundle(String, java.util.Locale) for an example of the semantics

* This should be re-implemented using Java 1.6 ResourceBundle.Control objects and hence allow the normal ResourceBundle loading mechanism to be used. But we arent on Java 6 yet!

http://java.sun.com/javase/6/docs/api/java/util/ResourceBundle.Control.html

Parameters
baseName the base name of the reosurce
locale the locale to use as a lookup
Returns
  • a DebuggingResourceBundle or null

public Enumeration<String> getKeys ()

public boolean isStale ()

public String toString ()

Protected Methods

protected Object handleGetObject (String key)