Uploaded image for project: 'Isis'
  1. Isis
  2. ISIS-389

Ensure that objects lazily loaded by JDO/DataNucleus get domain services injected into them consistently.

    Details

      Description

      Previously our approach was to use the LoadedLifecycleListener and inject services at that point. However, it turns out that this callback is only called when all of the fields/properties in the default fetch group have been loaded; in other words it is indeterminate as to when it is called. The consequence of this is that any attempt to invoke an action on the domain object may result in a NPE if it tries to use a not-yet-injeted service or the container.

      This ticket is to hook into JDO/DataNucleus' SPI in order to do the necessary injection.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                danhaywood Dan Haywood
                Reporter:
                danhaywood Dan Haywood
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: