Uploaded image for project: 'Causeway'
  1. Causeway
  2. CAUSEWAY-389

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • objectstore-jdo-1.0.0
    • objectstore-jdo-1.1.0
    • Persistence JDO
    • None

    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

              danhaywood Daniel Keir Haywood
              danhaywood Daniel Keir Haywood
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: