Class AbstractConfigurationFactory

    • Constructor Detail

      • AbstractConfigurationFactory

        public AbstractConfigurationFactory()
    • Method Detail

      • getConfigParametersUsingTokenData

        protected Map<String,​String> getConfigParametersUsingTokenData​(elemental.json.JsonObject buildInfo)
        Returns the config parameters from the token file data buildInfo.
        Parameters:
        buildInfo - the token file data
        Returns:
        the config parameters
      • setDevModePropertiesUsingTokenData

        protected void setDevModePropertiesUsingTokenData​(Map<String,​String> params,
                                                          elemental.json.JsonObject buildInfo)
        Sets to the dev mode properties to the configuration parameters.
        Parameters:
        params - the configuration parameters to set dev mode properties to
        buildInfo - the token file data
        See Also:
        getConfigParametersUsingTokenData(JsonObject)
      • getTokenFileContent

        protected String getTokenFileContent​(Function<String,​String> locationProvider)
        Gets the content of the token file with given locationProvider.
        Parameters:
        locationProvider - the token file location provider
        Returns:
        the token file location, may be null
      • verifyFolderExists

        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.

        If folder doesn't exist throw IllegalStateException saying that this should probably be a production mode build.

        Parameters:
        params - parameters map
        folder - folder to check exists