Package com.tangosol.coherence.config
Interface SystemPropertyResolver
-
- All Known Implementing Classes:
ConfigPropertyResolver
,SystemPropertyResolver.Default
public interface SystemPropertyResolver
An abstraction that allows us to make system property resolution customizable.- Author:
- as 2019.10.11
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
SystemPropertyResolver.Default
DefaultSystemPropertyResolver
implementation.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static SystemPropertyResolver
getInstance()
Return an instance of aSystemPropertyResolver
discovered by theServiceLoader
, or a default instance if none are discovered.String
getProperty(String sPropertyName)
Return the value of the specified system property.default String
getProperty(String sPropertyName, String sDefaultValue)
Return the value of the specified system property, or the specified default value if the property doesn't exist.
-
-
-
Method Detail
-
getProperty
String getProperty(String sPropertyName)
Return the value of the specified system property.- Parameters:
sPropertyName
- the name of the property to return- Returns:
- the value of the specified system property
-
getProperty
default String getProperty(String sPropertyName, String sDefaultValue)
Return the value of the specified system property, or the specified default value if the property doesn't exist.- Parameters:
sPropertyName
- the name of the property to returnsDefaultValue
- the default value to return if the property doesn't exist- Returns:
- the value of the specified system property, or the specified default value if the property doesn't exist
-
getInstance
static SystemPropertyResolver getInstance()
Return an instance of aSystemPropertyResolver
discovered by theServiceLoader
, or a default instance if none are discovered.- Returns:
- an instance of a
SystemPropertyResolver
-
-