Class DarkFeatures

Object
DarkFeatures

@PublicApi public class DarkFeatures extends Object

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.

See Also:
  • Constructor Details

    • DarkFeatures

      public DarkFeatures()
  • Method Details

    • getLong

      public static long getLong(@NotNull String propertyName, long defaultValue)
    • getInteger

      public static int getInteger(@NotNull String propertyName, int defaultValue)
    • getBoolean

      public static boolean getBoolean(@NotNull String propertyName)
    • getBoolean

      public static boolean getBoolean(@NotNull String propertyName, boolean defaultValue)
    • getProperty

      @Nullable public static String getProperty(@NotNull String propertyName)
    • getProperty

      @Contract("_, !null -> !null") public static String getProperty(@NotNull String propertyName, @Nullable String defaultValue)
    • getApplicationProperty

      @Nullable @Internal public static String getApplicationProperty(@NotNull String propertyName)