Uploaded image for project: 'EMR API'
  1. EMR API
  2. EA-12

Allow PatientMergeActions to be lazy-autowired

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Code Review (Initial)
    • Priority: TBD
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None
    • Complexity:
      L

      Description

      See EA-9.

      We'd like to switch the implement we implemented as part of EA-9 to the method that Darius suggests in his comments on EA-9, quoted below:

      It just occurred to me that the other way to do this would be:
      when first constructed patientMergeActions is null, we initialize as follows:

      if (patientMergeActions == null) {
          patientMergeActions = Context.getRegisteredComponents(PatientMergeAction.class);
      }
      

      return patientMergeActions
      This would have the effect of lazy-autowiring, without other modules needing to explicitly register the actions.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                odorajonathan JONATHAN AJAL ODORA
                Reporter:
                mogoodrich Mark Goodrich
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:

                    Time Tracking

                    Estimated:
                    Original Estimate - 1 hour, 30 minutes
                    1h 30m
                    Remaining:
                    Remaining Estimate - 1 hour, 30 minutes
                    1h 30m
                    Logged:
                    Time Spent - Not Specified
                    Not Specified