Uploaded image for project: 'Kogito'
  1. Kogito
  2. KOGITO-1492

Allow to inject event listeners instead of using *EventListenerConfig

    Details

    • Story Points:
      5

      Description

      e.g for Rules, you implement listeners by injecting a config

      @ApplicationScoped
      public class RuleEventListenerConfig extends DefaultRuleEventListenerConfig {
          public RuleEventListenerConfig() {
              super(new PrometheusMetricsDroolsListener("onboarding"));
          }
      }
      

      but this is effectively only used to configure event listeners. So we should (also?) support to inject the listener; e.g.

      @ApplicationScoped
      public class PrometheusMetricsDroolsListener ... 
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  alcosta.redhat Alessandro Costa
                  Reporter:
                  evacchi Edoardo Vacchi
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: