All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.symphony.bdk.bot.sdk.elements.ElementsActionHandler Maven / Gradle / Ivy

package com.symphony.bdk.bot.sdk.elements;

import com.symphony.bdk.bot.sdk.event.EventDispatcher;
import com.symphony.bdk.bot.sdk.event.EventHandler;
import com.symphony.bdk.bot.sdk.event.model.SymphonyElementsEvent;

import lombok.Setter;

/**
 * Symphony elements event handler
 *
 * @author Marcus Secato
 *
 */
@Setter
public abstract class ElementsActionHandler extends
    EventHandler {

  private EventDispatcher eventDispatcher;

  private void register() {
    eventDispatcher.register(getElementsFormId(), this);
  }

  /**
   * Specifies which Symphony elements form this handler should listen events
   * for.
   *
   * @return the Symphony elements formId
   */
  protected abstract String getElementsFormId();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy