Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-11149 Improve Macros
  3. CDAP-11243

PluginConfig, PluginContext changes and MacroEvaluator implementation

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.5.0
    • Component/s: API, Pipelines
    • Labels:
      None
    • Rank:
      1|hzzfc7:

      Description

      PluginConfig needs a method to check if a field has a macro in config or not.
      PluginContext needs a new method to evaluate macro at runtime and use the evaluated value for fields before plugin instantiation at runtime.

      Example:

      <T> T newPluginInstance(String pluginId, MacroEvaluator evaluator) throws InstantiationException;
      

      Add add MacroEvaluator implementation to lookup hydrator properties store for default case, to lookup secure or runtime macro for macro functions.

        Attachments

          Activity

            People

            • Assignee:
              shankar Shankar Selvam
              Reporter:
              shankar Shankar Selvam
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: