demo-apps/demo-kda-app/src/main/java/com/amazonaws/services/kinesisanalytics/DemoKDAApp.java [97:113]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        ParameterTool parameter;

        // get application parameters
        if (env instanceof LocalStreamEnvironment) {
            //read the parameters specified from the command line
            parameter = ParameterTool.fromArgs(args);
        } else {
            //read the parameters from the Kinesis Analytics environment
            Map<String, Properties> applicationProperties = KinesisAnalyticsRuntime.getApplicationProperties();

            Properties flinkProperties = applicationProperties.get("FlinkApplicationProperties");

            if (flinkProperties == null) {
                throw new RuntimeException("Unable to load FlinkApplicationProperties properties from the Kinesis Analytics Runtime.");
            }

            parameter = ParameterToolUtils.fromApplicationProperties(flinkProperties);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



demo-apps/demo-kinesis-driver/src/main/java/com/amazonaws/services/kinesisanalytics/DemoKinesisDriver.java [73:88]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
		ParameterTool parameter;

		if (env instanceof LocalStreamEnvironment) {
			//read the parameters specified from the command line
			parameter = ParameterTool.fromArgs(args);
		} else {
			//read the parameters from the Kinesis Analytics environment
			Map<String, Properties> applicationProperties = KinesisAnalyticsRuntime.getApplicationProperties();

			Properties flinkProperties = applicationProperties.get("FlinkApplicationProperties");

			if (flinkProperties == null) {
				throw new RuntimeException("Unable to load FlinkApplicationProperties properties from the Kinesis Analytics Runtime.");
			}

			parameter = ParameterToolUtils.fromApplicationProperties(flinkProperties);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



