Dan Haywood created ISIS-389:
--------------------------------

             Summary: Ensure that objects lazily loaded by JDO/DataNucleus get 
domain services injected into them consistently.
                 Key: ISIS-389
                 URL: https://issues.apache.org/jira/browse/ISIS-389
             Project: Isis
          Issue Type: Improvement
          Components: Objectstore: JDO
    Affects Versions: objectstore-jdo-1.0.0
            Reporter: Dan Haywood
            Assignee: Dan Haywood
             Fix For: objectstore-jdo-1.1.0


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.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to