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

Complete the guava EventBus support with new annotations

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • core-1.2.0
    • core-1.5.0
    • Core
    • None

    Description

      A while back I introduced support for the Guava eventbus in the domain model, and introduced the @PostsPropertyChangedEvent. This will cause the old/new values of the change to be sent to any (domain service) subscriber.

      This work is incomplete though. We ought also to have some additional annotations for other significant actions. I'm thinking:

      • @PostsCollectionAddedToEvent
      • @PostsCollectionRemovedFromEvent
      • @PostsActionInvokedEvent
      • @PostsObjectPersistedEvent
      • @PostsObjectDeletedEvent.
        I think that this would probably cover most of the lifecycle events you would want to handle; it'd also be a pretty useful way of decoupling a domain model (without the overhead of publishing via Isis' PublishingService API).

      Attachments

        1. patch-GC-550.diff
          30 kB
          Óscar Bou

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: