Class FEELEventListenersManager


  • public class FEELEventListenersManager
    extends Object
    • Constructor Detail

      • FEELEventListenersManager

        public FEELEventListenersManager()
    • Method Detail

      • addListener

        public void addListener​(org.kie.dmn.api.feel.runtime.events.FEELEventListener listener)
        Registers a new event listener into this FEEL instance. The event listeners are notified about signitificative events during compilation or evaluation of expressions.
        Parameters:
        listener - the listener to register
      • addListeners

        public void addListeners​(Collection<org.kie.dmn.api.feel.runtime.events.FEELEventListener> listeners)
      • removeListener

        public void removeListener​(org.kie.dmn.api.feel.runtime.events.FEELEventListener listener)
        Removes a listener from the list of event listeners.
        Parameters:
        listener - the listener to remove
      • getListeners

        public Set<org.kie.dmn.api.feel.runtime.events.FEELEventListener> getListeners()
        Retrieves the set of registered event listeners
        Returns:
        the set of listeners
      • hasListeners

        public boolean hasListeners()
      • notifyListeners

        public void notifyListeners​(org.kie.dmn.api.feel.runtime.events.FEELEvent event)