All Downloads are FREE. Search and download functionalities are using the official Maven repository.

templates.evalField.mustache Maven / Gradle / Ivy

There is a newer version: 4.6.2
Show newest version
            //Field {{fieldName}}
            if(baseExecutionContext != null) {
                {{#toEval}}
                toEval.add(
                    eval{{fieldType}}Property("{{fieldName}}", {{originalConfigurationName}}.{{fieldGetter}}(), currentAttributePrefix, baseExecutionContext, "{{secretKind}}")
                {{/toEval}}
                {{#toEvalList}}
                toEvalList.add(
                    eval{{fieldType}}Property("{{fieldName}}", {{originalConfigurationName}}.{{fieldGetter}}(), currentAttributePrefix, baseExecutionContext)
                {{/toEvalList}}
                {{^toEval}}
                    {{^toEvalList}}
                    {{evaluatedConfigurationName}}.{{fieldSetter}}(
                    eval{{fieldType}}Property("{{fieldName}}", {{originalConfigurationName}}.{{fieldGetter}}(), {{#fieldClass}}{{fieldClass}}.class, {{/fieldClass}}currentAttributePrefix, baseExecutionContext)
                    {{/toEvalList}}
                {{/toEval}}
                {{#toEval}}
                    .doOnSuccess(value -> {{evaluatedConfigurationName}}.{{fieldSetter}}(value))
                {{/toEval}}
                {{#toEvalList}}
                    .doOnSuccess(value -> {{evaluatedConfigurationName}}.{{fieldSetter}}(value))
                {{/toEvalList}}
                );
            } else if(deploymentContext != null) {
                {{#toEval}}
                    toEval.add(
                    eval{{fieldType}}Property("{{fieldName}}", {{originalConfigurationName}}.{{fieldGetter}}(), currentAttributePrefix, deploymentContext, "{{secretKind}}")
                    .doOnSuccess(value -> {{evaluatedConfigurationName}}.{{fieldSetter}}(value)));
                {{/toEval}}
                {{#toEvalList}}
                    toEvalList.add(
                    eval{{fieldType}}Property("{{fieldName}}", {{originalConfigurationName}}.{{fieldGetter}}(), currentAttributePrefix, deploymentContext)
                    .doOnSuccess(value -> {{evaluatedConfigurationName}}.{{fieldSetter}}(value)));
                {{/toEvalList}}
            }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy