Uploaded image for project: 'OODT (Retired)'
  1. OODT (Retired)
  2. OODT-251

Remove generation of (and dependency on) module constants in the core library

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • None
    • 0.11
    • balance
    • None

    Description

      Since Balance 0.2 (internal JPL release), it has been possible to include content from multiple modules in a single response. This means that the old method of referring to module paths via the constant values (MODULE, MODULE_ROOT, and MODULE_STATIC) no longer work predictably. Since constants can not (by definition) be redefined during the lifetime of a request, a more flexible method is needed to represent module context.

      The Application::loadModule() function was introduced some time back to address this, however, the constants were never removed, and there are places where the old and new methods are still used side by side. We need to remove the constants from the core, and update modules to use only the loadModule() syntax.

      This issue addresses the problem for the core library. Others will follow for individual modules.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ahart Andrew Hart
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: