Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-2279

Add "on_startup" attribute to require_module element of module config.xml

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Could
    • Resolution: Change Request Cancelled
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Module Engine
    • Labels:
      None
    • Complexity:
      Medium

      Description

      If module dependencies could be optionally qualified when the dependency does not exist at startup, then we could better handle some edge cases where bi-directional dependencies exist between modules. In some cases, two modules need each other to be present. If each module requires the other to startup, then an impasse is reached; however, this impasse can be mitigated if at least one of the modules could relax it's dependency to say "make sure this module is loaded and started during the module startup process, but I can be started without it."

      For example, Module A and Module B depend on each other, but Module B can be safely started without Module A. In this case, Module A would require Module B and Module B would require Module A, but Module B's config.xml would contain:

      <require_modules>
             <require_module version="1.8" on_startup="false">org.openmrs.module.{Module A's ID}</require_module>
      </require_modules>
      

      The default value of the on_startup attribute would be true.

        Attachments

        1. on_startup_revised.patch
          21 kB
        2. on_startup.patch
          21 kB

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            burke Burke Mamlin
            Votes:
            1 Vote for this issue
            Watchers:
            11 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: