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

Allow to inject event listeners instead of using *EventListenerConfig

    XMLWordPrintable

Details

    • 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 ... 
      

      Attachments

        Issue Links

          Activity

            People

              alcosta.redhat Alessandro Costa
              evacchi Edoardo Vacchi (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: