Class BonitaConfigProperty

java.lang.Object
org.bonitasoft.engine.properties.BonitaConfigProperty
Direct Known Subclasses:
BooleanProperty, StringProperty

public abstract class BonitaConfigProperty extends Object
Represents a Bonita configuration property. It supports properties passed as Java System property (like -Dmy.custom-property.subproperty=MY_VALUE) or as environment variables (like MY_CUSTOMPROPERTY_SUBPROPERTY=MY_VALUE). If both are defined, System Property has precedence.
Author:
Emmanuel Duchastenier
  • Field Details

    • propertyKey

      protected final String propertyKey
    • displayName

      protected final String displayName
  • Constructor Details

    • BonitaConfigProperty

      public BonitaConfigProperty(String displayName, String propertyKey)
      Parameters:
      displayName - the display name of the property, used in logs
      propertyKey - the "system property" version of the property, typically in lowercase and with dots.
  • Method Details

    • logInitializationMessagesIfFirstTime

      protected void logInitializationMessagesIfFirstTime()
    • envPropertyKey

      protected String envPropertyKey()
    • getProperty

      protected String getProperty(String defaultValue)