Class JiraPropertiesImpl

java.lang.Object
com.atlassian.jira.config.properties.JiraPropertiesImpl
All Implemented Interfaces:
JiraProperties
Direct Known Subclasses:
MockJiraProperties

@Internal public class JiraPropertiesImpl extends Object implements JiraProperties
Handles getting and setting of system properties.

Non-null values are cached. If you need the latest value of the system property, call refresh() before you access that property. If you are changing a system property wish the changed value to be seen by this class immediately you need to call setProperty(String, Object) or setProperties(java.util.Properties) method of this class. Doing this often is a potential performance problem, as Boolean.getBoolean(String a) is a blocking operation, so you should NOT do this for every SQL statement or Web request etc.

For reading properties, this class catches SecurityExceptions and returns null or default values provided. However, this class will not catch such exceptions when setting system properties.
Since:
v6.1