Class DelcarativeConfigSupport

java.lang.Object
io.helidon.declarative.codegen.DelcarativeConfigSupport

public final class DelcarativeConfigSupport extends Object
Support to generate consistent configuration for declarative types.
  • Method Details

    • assignResolveExpression

      public static void assignResolveExpression(ContentBuilder<?> contentBuilder, String configVariableName, String variableName, String expression)
      Create an assignment for an expression that can use configuration references.
      Parameters:
      contentBuilder - builder of content to add lines to
      configVariableName - name of the config variable (i.e. config)
      variableName - name of the variable to assign to (i.e. uri)
      expression - the expression to resolve, probably from annotation option
    • resolveExpression

      public static void resolveExpression(ContentBuilder<?> contentBuilder, String configVariableName, String expression)
      Create an in-lined expression resolution that can use configuration references.
      Parameters:
      contentBuilder - builder of content to add lines to
      configVariableName - name of the config variable (i.e. config)
      expression - the expression to resolve, probably from annotation option