Uploaded image for project: 'VIVO'
  1. VIVO
  2. VIVO-249

Clean up the way that we apply DataGetters to templates

    XMLWordPrintable

    Details

    • Attachments:
      0
    • Comments:
      1

      Description

      Currently, this is handled by overriding the getTemplate() method in the FreemarkerConfiguration, and storing the result in the environment. Since the top-level template is loaded prior to the environment being created, a similar process occurs in TemplateProcessingHelper.

      How could this be done more cleanly?

      The DataGetter interface returns a full map. Could it be changed to just return the map of changes/additions? Could we treat it as such? Could these be stored in the request-based info in the Configuration?

        Attachments

          Activity

            People

            • Assignee:
              j2blake Jim Blake
              Reporter:
              j2blake Jim Blake
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Time Tracking

                Estimated:
                Original Estimate - 4 hours
                4h
                Remaining:
                Remaining Estimate - 4 hours
                4h
                Logged:
                Time Spent - Not Specified
                Not Specified