Class TemplateVariableRegistry

java.lang.Object
io.aiven.commons.kafka.connector.common.templating.TemplateVariableRegistry

public final class TemplateVariableRegistry extends Object
A registry of template variables.
  • Field Details

    • STANDARD_SINK

      public static final TemplateVariableRegistry STANDARD_SINK
      A registry of the standard variables used in a Sink connector.
  • Method Details

    • builder

      public static TemplateVariableRegistry.Builder builder()
      Creates a new builder of TemplateVariableRegistries.
      Returns:
      the new builder.
    • has

      public boolean has(String name)
      Determines if the name is in the registry.
      Parameters:
      name - the name to look for.
      Returns:
      true if the name is in the registry.
    • listVariables

      public List<TemplateVariable> listVariables()
      Returns a list of registered template variables.
      Returns:
      a list of registered template variables.
    • get

      public TemplateVariable get(String name)
      Gets the template variable for the specified name.
      Parameters:
      name - the name to retrieve.
      Returns:
      the TemplateVariable.
      Throws:
      IllegalArgumentException - if the variable is not in the registry.