|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.config.properties.ApplicationPropertiesImpl
public class ApplicationPropertiesImpl
A class to manage the interface with a single property set, used for application properties
| Constructor Summary | |
|---|---|
ApplicationPropertiesImpl(PropertiesManager propertiesManager)
|
|
| Method Summary | |
|---|---|
Map<String,Object> |
asMap()
This will return all application and typed values. |
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. |
Collection<String> |
getDefaultKeys()
Get all the keys from the default properties |
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<String> |
getKeys()
|
String |
getMailEncoding()
Convenience method to get the email encoding |
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<String> |
getStringsWithPrefix(String prefix)
|
String |
getText(String name)
|
void |
onClearCache(ClearCacheEvent event)
|
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)
|
void |
start()
This method wil be called after the plugin system is fully initialised and all components added to the dependency injection framework. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ApplicationPropertiesImpl(PropertiesManager propertiesManager)
| Method Detail |
|---|
public void start()
throws Exception
Startable
start in interface StartableException - Allows implementations to throw an Exception.@EventListener public void onClearCache(ClearCacheEvent event)
public String getText(String name)
getText in interface ApplicationProperties
public void setText(String name,
String value)
setText in interface ApplicationPropertiespublic String getString(String name)
getString in interface ApplicationPropertiespublic Collection<String> getDefaultKeys()
getDefaultKeys in interface ApplicationPropertiespublic String getDefaultBackedString(String name)
getDefaultBackedString in interface ApplicationPropertiespublic String getDefaultBackedText(String name)
getDefaultBackedText in interface ApplicationPropertiespublic String getDefaultString(String name)
getDefaultString in interface ApplicationPropertiesname - the name of the property.
public void setString(String name,
String value)
setString in interface ApplicationPropertiespublic final boolean exists(String key)
getOption(String)
exists in interface ApplicationPropertiespublic boolean getOption(String key)
getOption in interface ApplicationPropertiespublic Collection<String> getKeys()
getKeys in interface ApplicationPropertiespublic Map<String,Object> asMap()
ApplicationPropertiesMap.keySet()
asMap in interface ApplicationProperties
public void setOption(String key,
boolean value)
setOption in interface ApplicationPropertiespublic String getEncoding()
getEncoding in interface ApplicationPropertiespublic String getMailEncoding()
getMailEncoding in interface ApplicationPropertiespublic String getContentType()
getContentType in interface ApplicationPropertiespublic void refresh()
refresh in interface ApplicationPropertiespublic String toString()
toString in class Objectpublic Locale getDefaultLocale()
getDefaultLocale in interface ApplicationPropertiespublic Collection<String> getStringsWithPrefix(String prefix)
getStringsWithPrefix in interface ApplicationProperties
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||