Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-7071

Outline config-by-code discovery tooling

    XMLWordPrintable

Details

    • New Feature
    • Resolution: Done
    • Neutral
    • None
    • None
    • None
    • None
    • Basel 102
    • 8

    Description

      Create a simple config source implementation which would scan the module classes and look for the methods supplied with a config-related annotation (e.g. @Dialog, @App etc).

      For the starters such configuration source could merely detect such methods, execute them, fetch the result (a definition) and craft a definition provider out of it, rendering it static. Some further steps could include:

      • "always-invoke" version, which would always trigger the method call, allowing the dynamically populated definitions (this has to used with caution performance-wise);
      • combine the file-based approach and the code-based approach: allow to register groovy scripts (that use the same APIs) which unlike the described module methods could be moved and edited deliberately.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                apchelintcev Aleksandr Pchelintcev
                apchelintcev Aleksandr Pchelintcev
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: