Class PropertyBasedConfiguration

java.lang.Object
org.nuxeo.ecm.core.blob.PropertyBasedConfiguration
Direct Known Subclasses:
AbstractBlobStoreConfiguration, AESBlobStoreConfiguration, CachingConfiguration, DigestConfiguration, LocalBlobStoreConfiguration

public class PropertyBasedConfiguration extends Object
Basic configuration based on properties.
Since:
11.1
  • Field Details

    • systemPropertyPrefix

      public final String systemPropertyPrefix
    • properties

      public final Map<String,String> properties
  • Constructor Details

    • PropertyBasedConfiguration

      public PropertyBasedConfiguration(String systemPropertyPrefix, Map<String,String> properties)
  • Method Details

    • getProperty

      public String getProperty(String propertyName)
      Gets a string property.
    • getProperty

      public String getProperty(String propertyName, String defaultValue)
      Gets a string property, or the given default if undefined or blank.
    • getLongProperty

      public long getLongProperty(String key)
      Gets a long property, or -1 if undefined or blank.
    • getIntProperty

      public int getIntProperty(String key)
      Gets an integer property, or -1 if undefined or blank.
    • getIntProperty

      public int getIntProperty(String key, int defaultValue)
      Gets an integer property, or the given default if undefined or blank.
      Since:
      2023.5
    • getBooleanProperty

      public boolean getBooleanProperty(String key)
      Gets a boolean property.