Package org.pentaho.platform.api.engine
Interface ISystemConfig
-
public interface ISystemConfig
User: nbaker Date: 4/2/13
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description IConfiguration
getConfiguration(String configId)
String
getProperty(String placeholder)
default String
getProperty(String placeholder, String defaultValue)
Gets the value of a property if it is defined, falling back to a given default value, otherwise.IConfiguration[]
listConfigurations()
void
registerConfiguration(IConfiguration configuration)
-
-
-
Method Detail
-
getConfiguration
IConfiguration getConfiguration(String configId)
-
getProperty
default String getProperty(String placeholder, String defaultValue)
Gets the value of a property if it is defined, falling back to a given default value, otherwise.- Parameters:
placeholder
- A property placeholder in the format"configId.property"
.defaultValue
- The value returned when a property is not defined, i.e., the value returned byIConfiguration.getProperties()
and then byProperties.getProperty(String)
isnull
.- Returns:
- The value of the given property, when defined;
null
otherwise.
-
registerConfiguration
void registerConfiguration(IConfiguration configuration) throws IOException
- Throws:
IOException
-
listConfigurations
IConfiguration[] listConfigurations()
-
-