com.atlassian.jira.config.properties
Class ApplicationProperties

java.lang.Object
  extended bycom.atlassian.jira.config.properties.ApplicationProperties

public class ApplicationProperties
extends java.lang.Object

A class to manage the interface with a single property set, used for application properties


Constructor Summary
ApplicationProperties()
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 boolean exists(java.lang.String key)
          Whether the specified key is present in the backing PropertySet.
 java.lang.String getContentType()
           
 java.lang.String getDefaultBackedString(java.lang.String name)
          Get the property from the application properties, but if not found, try to get from the default properties file.
 java.util.Locale getDefaultLocale()
           
protected  java.util.Properties getDefaultProperties()
          Get a list of default properties.
protected  java.lang.String getDefaultString(java.lang.String name)
          Get the default property (if the property is not set)
 java.lang.String getEncoding()
          Convenience method to get the content type for an application
 java.util.Collection getKeys()
           
 boolean getOption(java.lang.String key)
          Get the option from the application properties, but if not found, try to get from the default properties file.
 java.lang.String getString(java.lang.String name)
           
 java.lang.String getText(java.lang.String name)
           
 int hashCode()
           
 void refresh()
          Refresh application properties object by refreshing the PropertiesManager
 void setOption(java.lang.String key, boolean value)
           
 void setString(java.lang.String name, java.lang.String value)
           
 void setText(java.lang.String name, java.lang.String value)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ApplicationProperties

public ApplicationProperties()
Method Detail

getText

public java.lang.String getText(java.lang.String name)

setText

public void setText(java.lang.String name,
                    java.lang.String value)

getString

public java.lang.String getString(java.lang.String name)

getDefaultBackedString

public java.lang.String getDefaultBackedString(java.lang.String name)
Get the property from the application properties, but if not found, try to get from the default properties file.


getDefaultString

protected java.lang.String getDefaultString(java.lang.String name)
Get the default property (if the property is not set)

Parameters:
name -
Returns:

setString

public void setString(java.lang.String name,
                      java.lang.String value)

exists

public final boolean exists(java.lang.String key)
Whether the specified key is present in the backing PropertySet. Typically called before getOption(java.lang.String)


getOption

public boolean getOption(java.lang.String key)
Get the option from the application properties, but if not found, try to get from the default properties file.


getKeys

public java.util.Collection getKeys()

setOption

public void setOption(java.lang.String key,
                      boolean value)

getEncoding

public java.lang.String getEncoding()
Convenience method to get the content type for an application


getContentType

public java.lang.String getContentType()

refresh

public void refresh()
Refresh application properties object by refreshing the PropertiesManager


toString

public java.lang.String toString()

equals

public boolean equals(java.lang.Object o)

hashCode

public int hashCode()

getDefaultProperties

protected java.util.Properties getDefaultProperties()
Get a list of default properties. This will usually be used if there is no property listed in the database.

They are loaded from a file #APP_PROPERTIES_DEFAULTS


getDefaultLocale

public java.util.Locale getDefaultLocale()