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

Wire up JDO events to publish onto our EventBus (rather than publish our own events).

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: core-1.5.0
    • Fix Version/s: 1.10.0
    • Component/s: Core
    • Labels:
      None

      Description

      Specifically:

      • ObjectPersistedEvent // postCreate in JDO terminology
      • ObjectUpdatingEvent // preStore in JDO terminology
      • ObjectUpdatedEvent // postStore in JDO terminology
      • ObjectRemovingEvent // preDelete in JDO terms

      This would be a more flexible solution for many use cases than implementing updating() etc.... can centralize logic.

        Issue Links

          Activity

          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit e5a1faa8e07c6f617223811b9490f0074b4825fa in isis's branch refs/heads/master from Dan Haywood
          [ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=e5a1faa ]

          ISIS-830: introduced new ObjectXxxEvent into applib, also AbstractLifecycleEvent superclass, updated PersistenceSession to call these events.

          also:

          • fixed toString for AbstractDomainEvent
          • factored out internal interfaces for the interactions between:
          • PersistenceSession and IsisLifecycleListener2
          • PersistenceSession and IsisTransactionManager
          • PersistenceSession and PersistenceQueryProcessorAbstract implementations
          Show
          jira-bot ASF subversion and git services added a comment - Commit e5a1faa8e07c6f617223811b9490f0074b4825fa in isis's branch refs/heads/master from Dan Haywood [ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=e5a1faa ] ISIS-830 : introduced new ObjectXxxEvent into applib, also AbstractLifecycleEvent superclass, updated PersistenceSession to call these events. also: fixed toString for AbstractDomainEvent factored out internal interfaces for the interactions between: PersistenceSession and IsisLifecycleListener2 PersistenceSession and IsisTransactionManager PersistenceSession and PersistenceQueryProcessorAbstract implementations
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit c7d12e30b3685e5d982c818b49ac3d21802e43eb in isis's branch refs/heads/master from Dan Haywood
          [ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=c7d12e3 ]

          ISIS-830: new lifecycle events following pattern of existing domain events...

          ... being abstract and with a Default impl, Also no-arg constructor.

          This should make ISIS-803 easier to implement when we get around to it

          Show
          jira-bot ASF subversion and git services added a comment - Commit c7d12e30b3685e5d982c818b49ac3d21802e43eb in isis's branch refs/heads/master from Dan Haywood [ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=c7d12e3 ] ISIS-830 : new lifecycle events following pattern of existing domain events... ... being abstract and with a Default impl, Also no-arg constructor. This should make ISIS-803 easier to implement when we get around to it
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit b1616e43ea9933c5ee34a90c1293298f0f065628 in isis's branch refs/heads/master from Dan Haywood
          [ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=b1616e4 ]

          ISIS-830: improving the toString of the default lifecycle events

          Show
          jira-bot ASF subversion and git services added a comment - Commit b1616e43ea9933c5ee34a90c1293298f0f065628 in isis's branch refs/heads/master from Dan Haywood [ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=b1616e4 ] ISIS-830 : improving the toString of the default lifecycle events
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit c22159fe55317aabbe07d7ac7bccc30b7fe582cb in isis's branch refs/heads/master from Dan Haywood
          [ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=c22159f ]

          ISIS-830: adding documentation

          Show
          jira-bot ASF subversion and git services added a comment - Commit c22159fe55317aabbe07d7ac7bccc30b7fe582cb in isis's branch refs/heads/master from Dan Haywood [ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=c22159f ] ISIS-830 : adding documentation
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit 1e10ba74a5498d768bc915cb564f7feefa6a21ed in isis's branch refs/heads/master from Dan Haywood
          [ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=1e10ba7 ]

          ISIS-830: suppress the postEvent for Command object (special case, otherwise catch-22 situation).

          Show
          jira-bot ASF subversion and git services added a comment - Commit 1e10ba74a5498d768bc915cb564f7feefa6a21ed in isis's branch refs/heads/master from Dan Haywood [ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=1e10ba7 ] ISIS-830 : suppress the postEvent for Command object (special case, otherwise catch-22 situation).
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit c5eaf8b2b8442b45b0aaadf5d991338e719780ac in isis's branch refs/heads/master from Dan Haywood
          [ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=c5eaf8b ]

          ISIS-830: improved error message for if register 'late'.

          We throw the IllegalStateException if any events have been posted.

          Also:

          • added unit tests around this functionality
          Show
          jira-bot ASF subversion and git services added a comment - Commit c5eaf8b2b8442b45b0aaadf5d991338e719780ac in isis's branch refs/heads/master from Dan Haywood [ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=c5eaf8b ] ISIS-830 : improved error message for if register 'late'. We throw the IllegalStateException if any events have been posted. Also: added unit tests around this functionality
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit c610861d241dabc9f6475ded2b1bf063c29acccc in isis's branch refs/heads/master from Dan Haywood
          [ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=c610861 ]

          ISIS-830: adding migration notes for 1.10.0, mentioning the allowLateRegistration flag.

          Show
          jira-bot ASF subversion and git services added a comment - Commit c610861d241dabc9f6475ded2b1bf063c29acccc in isis's branch refs/heads/master from Dan Haywood [ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=c610861 ] ISIS-830 : adding migration notes for 1.10.0, mentioning the allowLateRegistration flag.
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit 528302e0cc5fcdc08fd0072521c3227d60d58d5c in isis's branch refs/heads/master from Dan Haywood
          [ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=528302e ]

          ISIS-830: tiny fix to migration docs

          Show
          jira-bot ASF subversion and git services added a comment - Commit 528302e0cc5fcdc08fd0072521c3227d60d58d5c in isis's branch refs/heads/master from Dan Haywood [ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=528302e ] ISIS-830 : tiny fix to migration docs
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit f1c65d0e18b5d113a72e5f7527d22394aa57a808 in isis's branch refs/heads/master from Dan Haywood
          [ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=f1c65d0 ]

          ISIS-830: improved error message

          Show
          jira-bot ASF subversion and git services added a comment - Commit f1c65d0e18b5d113a72e5f7527d22394aa57a808 in isis's branch refs/heads/master from Dan Haywood [ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=f1c65d0 ] ISIS-830 : improved error message
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit acf1860d678c8c04783ac76888c2f684d1278621 in isis's branch refs/heads/master from Dan Haywood
          [ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=acf1860 ]

          ISIS-830: further improvements to error message.

          Show
          jira-bot ASF subversion and git services added a comment - Commit acf1860d678c8c04783ac76888c2f684d1278621 in isis's branch refs/heads/master from Dan Haywood [ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=acf1860 ] ISIS-830 : further improvements to error message.

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development