Package com.tangosol.coherence.config
Interface SystemPropertyResolver
- 
- All Known Implementing Classes:
 ConfigPropertyResolver,SystemPropertyResolver.Default
public interface SystemPropertyResolverAn 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 classSystemPropertyResolver.DefaultDefaultSystemPropertyResolverimplementation. 
- 
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static SystemPropertyResolvergetInstance()Return an instance of aSystemPropertyResolverdiscovered by theServiceLoader, or a default instance if none are discovered.StringgetProperty(String sPropertyName)Return the value of the specified system property.default StringgetProperty(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 aSystemPropertyResolverdiscovered by theServiceLoader, or a default instance if none are discovered.- Returns:
 - an instance of a 
SystemPropertyResolver 
 
 - 
 
 -