Package org.nuxeo.ecm.core.blob
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 Summary
Fields Modifier and Type Field Description Map<String,String>
properties
String
systemPropertyPrefix
-
Constructor Summary
Constructors Constructor Description PropertyBasedConfiguration(String systemPropertyPrefix, Map<String,String> properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getBooleanProperty(String key)
Gets a boolean property.int
getIntProperty(String key)
Gets an integer property, or -1 if undefined or blank.int
getIntProperty(String key, int defaultValue)
Gets an integer property, or the given default if undefined or blank.long
getLongProperty(String key)
Gets a long property, or -1 if undefined or blank.String
getProperty(String propertyName)
Gets a string property.String
getProperty(String propertyName, String defaultValue)
Gets a string property, or the given default if undefined or blank.
-
-
-
Method Detail
-
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.
-
-