Class DarkFeatures
Object
DarkFeatures
Provides access to user-defined "dark" features and fine-tuning parameters.
The idea is to simplify property configuration (for example, have the same configuration on all nodes in cluster environment), so
DarkFeatures aims to replace System.getProperty(String) and similar method calls. To provide backward compatibility,
system property values are used if property is not configured.
Many components need these values during initialization phase (for example, to tune cache size). We store "dark" features in Jira's
ApplicationProperties to ensure that they can be accessed before ActiveObjects or any other plugin component is initialized.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetApplicationProperty(String propertyName) static booleangetBoolean(String propertyName) static booleangetBoolean(String propertyName, boolean defaultValue) static intgetInteger(String propertyName, int defaultValue) static longstatic StringgetProperty(String propertyName) static StringgetProperty(String propertyName, String defaultValue)
-
Constructor Details
-
DarkFeatures
public DarkFeatures()
-
-
Method Details
-
getLong
-
getInteger
-
getBoolean
-
getBoolean
-
getProperty
-
getProperty
-
getApplicationProperty
-