Package io.helidon.declarative.codegen
Class DelcarativeConfigSupport
java.lang.Object
io.helidon.declarative.codegen.DelcarativeConfigSupport
Support to generate consistent configuration for declarative types.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidassignResolveExpression(ContentBuilder<?> contentBuilder, String configVariableName, String variableName, String expression) Create an assignment for an expression that can use configuration references.static voidresolveExpression(ContentBuilder<?> contentBuilder, String configVariableName, String expression) Create an in-lined expression resolution that can use configuration references.
-
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 toconfigVariableName- 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 toconfigVariableName- name of the config variable (i.e.config)expression- the expression to resolve, probably from annotation option
-