public class Config extends Object
The Config class provides the implementation for loading configuration for the ClientManager. The properties included in Config.Props are loaded from the following locations:
Each location will overwrite the prior location, and values can be set programmatically, for example:
config.setProperty(Config.Props.ACCOUNT_EMAIL, "email@email.com");
Modifier and Type | Class and Description |
---|---|
static class |
Config.Props |
Modifier and Type | Method and Description |
---|---|
String |
get(String propertyName)
Arbitrary properties can be added to the bridge-sdk.properties file.
|
String |
getAccountAppId() |
String |
getAccountEmail() |
String |
getAccountPassword() |
SignIn |
getAccountSignIn() |
String |
getAppName() |
String |
getAppVersion() |
String |
getDeviceName() |
Environment |
getEnvironment() |
String |
getHost() |
String |
getLanguages() |
String |
getLogLevel() |
String |
getOsName() |
String |
getOsVersion() |
String |
getSdkVersion() |
void |
set(Config.Props property,
String value)
Method to reset any of the default values that are defined in the bridge-sdk.properties configuration file.
|
void |
set(Environment env)
Method to set the environment of the SDK.
|
public Config()
public Config(String... paths)
public void set(Config.Props property, String value)
property
- The property you are settingvalue
- The value to set for the propertypublic void set(Environment env)
env
- One of the environments supported by the Bridge server. If you are not an internal Sage
developer, you should never have to set this value to anything but Environment.PRODUCTION.public String get(String propertyName)
propertyName
- the name of the configuration propertypublic SignIn getAccountSignIn()
public String getAccountAppId()
public String getSdkVersion()
public String getAccountEmail()
public String getAccountPassword()
public String getLanguages()
public String getAppName()
public String getAppVersion()
public String getDeviceName()
public String getOsName()
public String getOsVersion()
public Environment getEnvironment()
public String getLogLevel()
public String getHost()
Copyright © 2023 Sage Bionetworks. All rights reserved.