Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      It would be great if out of the box HK2 provided an event bus feature that allowed synchronous and asynchronous communication between components/services. Perhaps something similar to Google Guava's EventBus.

        Activity

        Hide
        jwells added a comment -

        This is also very much like the eventing subsystem of CDI (see CDI specification chapter 10). We thought about putting this in before but decided we didn't have any use cases. I like it, but I'd also like it to be an add-on subsystem so people who don't need it don't pay for it.

        Show
        jwells added a comment - This is also very much like the eventing subsystem of CDI (see CDI specification chapter 10). We thought about putting this in before but decided we didn't have any use cases. I like it, but I'd also like it to be an add-on subsystem so people who don't need it don't pay for it.
        Hide
        saden added a comment -

        Our current use-case involves being able to create private event buses and performing both synchronous and asynchronous operation. Also, while I was gleaning over the glassfish code-base a while back I noticed that they implemented their own event bus system.

        Guava EventBus has served as well thus far and I believe they got it right with their API. Adding a similar feature to HK2 will make it more outstanding than it already is.

        Show
        saden added a comment - Our current use-case involves being able to create private event buses and performing both synchronous and asynchronous operation. Also, while I was gleaning over the glassfish code-base a while back I noticed that they implemented their own event bus system. Guava EventBus has served as well thus far and I believe they got it right with their API. Adding a similar feature to HK2 will make it more outstanding than it already is.
        Hide
        jwells added a comment -

        We have added an eventing feature to HK2. By default we use our own mechanism, but you can also replace that mechanism yourself to use a messaging provider of your choice (e.g. EventBus). We have a patent pending for having an SPI between the topic publisher and topic subscribers in a DI system!

        There will be an example and documentation as well. All of this should be available in hk2 2.3.0-b03

        Show
        jwells added a comment - We have added an eventing feature to HK2. By default we use our own mechanism, but you can also replace that mechanism yourself to use a messaging provider of your choice (e.g. EventBus). We have a patent pending for having an SPI between the topic publisher and topic subscribers in a DI system! There will be an example and documentation as well. All of this should be available in hk2 2.3.0-b03

          People

          • Assignee:
            jwells
            Reporter:
            saden
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: