com.atlassian.jira.config.properties.JiraProperties |
![]() |
Provides controlled access to system properties. Available from the container.
Default implementation provides caching of keys to minimize access to synchronized static getters such asgetProperty(String)
or getBoolean(String)
.
You may obtain implementations in the following ways:
getInstance()
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Retrieves a system property of the given name as a boolean.
| |||||||||||
Retrieves a system property of the given name as an integer, with a default value to be returned if property is not set.
| |||||||||||
Retrieves a system property of the given name as an integer.
| |||||||||||
Retrieves a system property of the given name as a long, with a default value to be returned if property is not set.
| |||||||||||
Retrieves a system property of the given name as a long.
| |||||||||||
Name of the product as it was when originally installed.
| |||||||||||
Retrieves all system properties as a properties object.
| |||||||||||
Retrieves a system property of the given name
| |||||||||||
Retrieves a system property of the given name, with a default value to be returned if property is not set.
| |||||||||||
Causes any previously cached values to be invalidated.
| |||||||||||
Sets the given properties as system properties.
| |||||||||||
Sets the key-value pair into the system properties.
| |||||||||||
Removes an entry in system properties under the given key.
|
Retrieves a system property of the given name as a boolean.
key | the name of the property. |
---|
Retrieves a system property of the given name as an integer, with a default value to be returned if property is not set.
key | the name of the property. |
---|---|
defaultInteger | the default value. |
Retrieves a system property of the given name as an integer.
key | the name of the property. |
---|
Retrieves a system property of the given name as a long, with a default value to be returned if property is not set.
key | the name of the property. |
---|---|
defaultLong | the default value. |
Retrieves a system property of the given name as a long.
key | the name of the property. |
---|
@Internal
or @PublicApi
.
Name of the product as it was when originally installed. Intended for use during setup.
Retrieves all system properties as a properties object. Note, this is not a view of the system properties, rather a snapshot at the time of the call.
Retrieves a system property of the given name
key | the name of the property. |
---|
Retrieves a system property of the given name, with a default value to be returned if property is not set.
key | the name of the property. |
---|---|
defaultString | the default value. |
Causes any previously cached values to be invalidated. As long as this object is used to set or retrieve system
properties it is not necessary to call this method. Call it only if you caused a system property change in another
way than setProperty(String, Object)
, setProperties(java.util.Properties)
or
unsetProperty(String)
.
Sets the given properties as system properties. Not that this will unset any properties not mentioned in the input properties object.
props | the target system properties. |
---|
Sets the key-value pair into the system properties. The value will be set as string using the toString()
method
key | the name of the property |
---|---|
value | the value of the property, stored as a String. |
Removes an entry in system properties under the given key.
key | the name of the property to be removed. |
---|