@PublicApi
public interface JiraProperties
Default implementation provides caching of keys to minimize access to synchronized static getters such as
System.getProperty(String)
or Boolean.getBoolean(String)
.
You may obtain implementations in the following ways:
JiraSystemProperties.getInstance()
Modifier and Type | Method and Description |
---|---|
Boolean |
getBoolean(String key)
Retrieves a system property of the given name as a boolean.
|
String |
getCustomDirectoryPlugins() |
Integer |
getInteger(String key)
Retrieves a system property of the given name as an integer.
|
Integer |
getInteger(String key,
Integer defaultInteger)
Retrieves a system property of the given name as an integer, with a default value to be returned if property is not set.
|
Long |
getLong(String key)
Retrieves a system property of the given name as a long.
|
Long |
getLong(String key,
Long defaultLong)
Retrieves a system property of the given name as a long, with a default value to be returned if property is not set.
|
String |
getPluginsRosterFile() |
Properties |
getProperties()
Retrieves all system properties as a properties object.
|
String |
getProperty(String key)
Retrieves a system property of the given name
|
String |
getProperty(String key,
String defaultString)
Retrieves a system property of the given name, with a default value to be returned if property is not set.
|
Map<String,String> |
getSanitisedProperties()
Return a copy of the current properties with sensitive properties sanitised.
|
boolean |
isBundledPluginsDisabled() |
boolean |
isContextBatchingDisabled() |
boolean |
isCustomPathPluginsEnabled() |
boolean |
isDarkFeaturesDisabled() |
boolean |
isDecodeMailParameters() |
boolean |
isDevMode() |
boolean |
isI18nReloadBundles() |
boolean |
isPluginsRosterFileEnabled() |
boolean |
isResourceBundleCacheCleaningDisabled() |
boolean |
isSuperBatchingDisabled() |
boolean |
isWebSudoDisabled() |
boolean |
isXsrfDetectionCheckRequired() |
boolean |
isXsrfDiagnostics() |
void |
refresh()
Causes any previously cached values to be invalidated.
|
void |
setProperties(Properties props)
Sets the given properties as system properties.
|
<T> void |
setProperty(String key,
T value)
Sets the key-value pair into the system properties.
|
boolean |
showPerformanceMonitor() |
void |
unsetProperty(String key)
Removes an entry in system properties under the given key.
|
String getProperty(String key)
key
- the name of the property.String getProperty(String key, String defaultString)
key
- the name of the property.defaultString
- the default value.<T> void setProperty(String key, T value)
Object.toString()
methodkey
- the name of the propertyvalue
- the value of the property, stored as a String.void unsetProperty(String key)
key
- the name of the property to be removed.Boolean getBoolean(String key)
key
- the name of the property.Integer getInteger(String key)
key
- the name of the property.Integer getInteger(String key, Integer defaultInteger)
key
- the name of the property.defaultInteger
- the default value.Long getLong(String key)
key
- the name of the property.Long getLong(String key, Long defaultLong)
key
- the name of the property.defaultLong
- the default value.Properties getProperties()
Map<String,String> getSanitisedProperties()
void setProperties(Properties props)
props
- the target system properties.System.setProperties(Properties)
void refresh()
setProperty(String, Object)
, setProperties(java.util.Properties)
or
unsetProperty(String)
.boolean isDevMode()
boolean isXsrfDetectionCheckRequired()
boolean isSuperBatchingDisabled()
boolean isContextBatchingDisabled()
boolean isDecodeMailParameters()
boolean isCustomPathPluginsEnabled()
String getCustomDirectoryPlugins()
boolean isPluginsRosterFileEnabled()
String getPluginsRosterFile()
boolean isWebSudoDisabled()
boolean isI18nReloadBundles()
boolean showPerformanceMonitor()
boolean isBundledPluginsDisabled()
boolean isDarkFeaturesDisabled()
boolean isXsrfDiagnostics()
boolean isResourceBundleCacheCleaningDisabled()
Copyright © 2002-2017 Atlassian. All Rights Reserved.