|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.config.properties.ApplicationPropertiesImpl
A class to manage the interface with a single property set, used for application properties
Field Summary | |
(package private) org.apache.log4j.Category |
log
|
(package private) PropertiesManager |
pm
|
Constructor Summary | |
ApplicationPropertiesImpl()
|
Method Summary | |
boolean |
equals(Object o)
|
boolean |
exists(String key)
Whether the specified key is present in the backing PropertySet. |
String |
getContentType()
|
String |
getDefaultBackedString(String name)
Get the property from the application properties, but if not found, try to get from the default properties file. |
String |
getDefaultBackedText(String name)
Get the property from the application properties, but if not found, try to get from the default properties file. |
Locale |
getDefaultLocale()
|
String |
getDefaultString(String name)
Get the default property (if the property is not set) |
String |
getEncoding()
Convenience method to get the content type for an application |
Collection |
getKeys()
|
boolean |
getOption(String key)
Get the option from the application properties, but if not found, try to get from the default properties file. |
String |
getString(String name)
|
Collection |
getStringsWithPrefix(String prefix)
|
String |
getText(String name)
|
int |
hashCode()
|
void |
refresh()
Refresh application properties object by refreshing the PropertiesManager |
void |
setOption(String key,
boolean value)
|
void |
setString(String name,
String value)
|
void |
setText(String name,
String value)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
org.apache.log4j.Category log
PropertiesManager pm
Constructor Detail |
public ApplicationPropertiesImpl()
Method Detail |
public String getText(String name)
getText
in interface ApplicationProperties
public void setText(String name, String value)
setText
in interface ApplicationProperties
public String getString(String name)
getString
in interface ApplicationProperties
public String getDefaultBackedString(String name)
getDefaultBackedString
in interface ApplicationProperties
public String getDefaultBackedText(String name)
getDefaultBackedText
in interface ApplicationProperties
public String getDefaultString(String name)
getDefaultString
in interface ApplicationProperties
name
- public void setString(String name, String value)
setString
in interface ApplicationProperties
public final boolean exists(String key)
getOption(java.lang.String)
exists
in interface ApplicationProperties
public boolean getOption(String key)
getOption
in interface ApplicationProperties
public Collection getKeys()
getKeys
in interface ApplicationProperties
public void setOption(String key, boolean value)
setOption
in interface ApplicationProperties
public String getEncoding()
getEncoding
in interface ApplicationProperties
public String getContentType()
getContentType
in interface ApplicationProperties
public void refresh()
refresh
in interface ApplicationProperties
public String toString()
public boolean equals(Object o)
public int hashCode()
public Locale getDefaultLocale()
getDefaultLocale
in interface ApplicationProperties
public Collection getStringsWithPrefix(String prefix)
getStringsWithPrefix
in interface ApplicationProperties
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |