com.atlassian.jira.config.properties.ApplicationProperties |
![]() |
Clients of @PublicApi
can expect
that programs compiled against a given version will remain binary compatible with later versions of the
@PublicApi
as per each product's API policy as long as the client does not implement/extend
@PublicApi
interfaces or classes (refer to each product's API policy for the exact
guarantee---usually binary compatibility is guaranteed at least across minor versions).
@PublicApi
interfaces and classes are not designed to be implemented or extended by clients,
we may perform certain types of binary-incompatible changes to these classes and interfaces, but these will not
affect well-behaved clients that do not extend/implement these types (in general, only classes and interfaces
annotated with @PublicSpi
are safe to extend/implement).
This can be used to lookup JIRA application properties. This uses a two stage strategy for finding property values. First the database is checked to see if a value exists. If it doesnt exist, it falls back to the file for a value. Once a key is placed in the database (via an upgrade task or UI interaction) then it will always be loaded from the database. NOTE : Be very careful with boolean property values. Because of the way OSPropertySets work, its impossible to distinguish between properties that have a false value and properties that have NO value. Therefore it is usually better to have a "String" property set to the value "true" or "false" and then use Boolean.valueOf() in it. This way it's possible to distinguish the absence of a property value from it being set to false.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This will return all application and typed values.
| |||||||||||
Get the property from the application properties, but if not found, try to get from the default properties file.
| |||||||||||
Get the property from the application properties, but if not found, try to get from the default properties file.
| |||||||||||
Get all the keys from the default properties
| |||||||||||
Get the default property (if the property is not set)
| |||||||||||
Convenience method to get the content type for an application
| |||||||||||
Convenience method to get the email encoding
| |||||||||||
Get the option from the application properties, but if not found, try to get from the default properties file.
| |||||||||||
Refresh application properties object by refreshing the PropertiesManager
| |||||||||||
@Internal
classes and interfaces can not expect to be compatible with any version
other than the version they were compiled against (even minor version and milestone releases may break binary
compatibility with respect to @Internal
elements).
This will return all application and typed values.
For example if the property is a boolean then a Boolean
object will be returned.
If an application property has a null value, then the key will still be in the keySet()
get
methods instead. For
most properties, getDefaultBackedString(String)
or getOption(String)
will be the best
choice.Get the property from the application properties, but if not found, try to get from the default properties file.
Get the property from the application properties, but if not found, try to get from the default properties file.
Get the default property (if the property is not set)
name | the name of the property. |
---|
Get the option from the application properties, but if not found, try to get from the default properties file.
Refresh application properties object by refreshing the PropertiesManager