public class AbstractConfigurationFactory extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static String |
DEV_FOLDER_MISSING_MESSAGE |
| Constructor and Description |
|---|
AbstractConfigurationFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,String> |
getConfigParametersUsingTokenData(elemental.json.JsonObject buildInfo)
Returns the config parameters from the token file data
buildInfo. |
protected String |
getTokenFileContent(Function<String,String> locationProvider)
Gets the content of the token file with given
locationProvider. |
protected void |
setDevModePropertiesUsingTokenData(Map<String,String> params,
elemental.json.JsonObject buildInfo)
Sets to the dev mode properties to the configuration parameters.
|
protected void |
verifyFolderExists(Map<String,String> params,
String folder)
Verify that given folder actually exists on the system if we are not in
production mode.
|
public static final String DEV_FOLDER_MISSING_MESSAGE
protected Map<String,String> getConfigParametersUsingTokenData(elemental.json.JsonObject buildInfo)
buildInfo.buildInfo - the token file dataprotected void setDevModePropertiesUsingTokenData(Map<String,String> params, elemental.json.JsonObject buildInfo)
params - the configuration parameters to set dev mode properties tobuildInfo - the token file datagetConfigParametersUsingTokenData(JsonObject)protected String getTokenFileContent(Function<String,String> locationProvider)
locationProvider.locationProvider - the token file location providernullprotected void verifyFolderExists(Map<String,String> params, String folder)
If folder doesn't exist throw IllegalStateException saying that this should probably be a production mode build.
params - parameters mapfolder - folder to check existsCopyright © 2021. All rights reserved.