org.axonframework.eventhandling.annotation.EventHandler类的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(4.6k)|赞(0)|评价(0)|浏览(165)

本文整理了Java中org.axonframework.eventhandling.annotation.EventHandler类的一些代码示例,展示了EventHandler类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。EventHandler类的具体详情如下:
包路径:org.axonframework.eventhandling.annotation.EventHandler
类名称:EventHandler

EventHandler介绍

暂无

代码示例

代码示例来源:origin: org.apache.isis.core/isis-core-applib

@Programmatic
@com.google.common.eventbus.Subscribe
@org.axonframework.eventhandling.annotation.EventHandler
public void on(FixturesInstallingEvent ev) {
  fixturesInstalling = true;
}

代码示例来源:origin: org.apache.isis.core/isis-core-applib

@Programmatic
@com.google.common.eventbus.Subscribe
@org.axonframework.eventhandling.annotation.EventHandler
public void on(FixturesInstalledEvent ev) {
  fixturesInstalling = false;
}

代码示例来源:origin: isisaddons/isis-app-todoapp

@Subscribe
@org.axonframework.eventhandling.annotation.EventHandler
public void on(final ObjectCreatedEvent ev) {
  LOG.info(ev.toString());
}

代码示例来源:origin: org.incode.example.document/incode-example-document-dom

@EventHandler
  @Subscribe
  public void on(DocumentTemplate.IconUiEvent ev) {
    if(ev.getIconName() != null) {
      return;
    }
    ev.setIconName("");
  }
}

代码示例来源:origin: org.incode.module.document/incode-module-document-dom

@EventHandler
  @Subscribe
  public void on(Document.CssClassUiEvent ev) {
    if(ev.getCssClass() != null) {
      return;
    }
    ev.setCssClass("");
  }
}

代码示例来源:origin: org.incode.example.document/incode-example-document-dom

@EventHandler
  @Subscribe
  public void on(Paperclip.CssClassUiEvent ev) {
    if(ev.getCssClass() != null) {
      return;
    }
    ev.setCssClass("");
  }
}

代码示例来源:origin: org.incode.module.document/incode-module-document-dom

@EventHandler
  @Subscribe
  public void on(Paperclip.IconUiEvent ev) {
    if(ev.getIconName() != null) {
      return;
    }
    ev.setIconName("");
  }
}

代码示例来源:origin: org.incode.example.document/incode-example-document-dom

@EventHandler
  @Subscribe
  public void on(DocumentType.IconUiEvent ev) {
    if(ev.getIconName() != null) {
      return;
    }
    ev.setIconName("");
  }
}

代码示例来源:origin: org.incode.example.document/incode-example-document-dom

@EventHandler
  @Subscribe
  public void on(DocumentType.CssClassUiEvent ev) {
    if(ev.getCssClass() != null) {
      return;
    }
    ev.setCssClass("");
  }
}

代码示例来源:origin: org.incode.example.document/incode-example-document-dom

@EventHandler
  @Subscribe
  public void on(Paperclip.IconUiEvent ev) {
    if(ev.getIconName() != null) {
      return;
    }
    ev.setIconName("");
  }
}

代码示例来源:origin: org.incode.module.document/incode-module-document-dom

@EventHandler
  @Subscribe
  public void on(DocumentType.CssClassUiEvent ev) {
    if(ev.getCssClass() != null) {
      return;
    }
    ev.setCssClass("");
  }
}

代码示例来源:origin: org.incode.example.document/incode-example-document-dom

@EventHandler
  @Subscribe
  public void on(Document.CssClassUiEvent ev) {
    if(ev.getCssClass() != null) {
      return;
    }
    ev.setCssClass("");
  }
}

代码示例来源:origin: org.incode.example.document/incode-example-document-dom

@EventHandler
  @Subscribe
  public void on(DocumentTemplate.CssClassUiEvent ev) {
    if(ev.getCssClass() != null) {
      return;
    }
    ev.setCssClass("");
  }
}

代码示例来源:origin: org.incode.module.document/incode-module-document-dom

@EventHandler
  @Subscribe
  public void on(Applicability.IconUiEvent ev) {
    if(ev.getIconName() != null) {
      return;
    }
    ev.setIconName("");
  }
}

代码示例来源:origin: org.incode.example.document/incode-example-document-dom

@EventHandler
  @Subscribe
  public void on(Applicability.CssClassUiEvent ev) {
    if(ev.getCssClass() != null) {
      return;
    }
    ev.setCssClass("");
  }
}

代码示例来源:origin: org.incode.module.document/incode-module-document-dom

@EventHandler
  @Subscribe
  public void on(RenderingStrategy.IconUiEvent ev) {
    if(ev.getIconName() != null) {
      return;
    }
    ev.setIconName("");
  }
}

代码示例来源:origin: org.incode.module.document/incode-module-document-dom

@EventHandler
  @Subscribe
  public void on(RenderingStrategy.CssClassUiEvent ev) {
    if(ev.getCssClass() != null) {
      return;
    }
    ev.setCssClass("");
  }
}

代码示例来源:origin: org.incode.module.document/incode-module-document-dom

@EventHandler
  @Subscribe
  public void on(Paperclip.CssClassUiEvent ev) {
    if(ev.getCssClass() != null) {
      return;
    }
    ev.setCssClass("");
  }
}

代码示例来源:origin: motown-io/motown

@EventHandler
public void handle(ChargingStationLocationImprovedEvent event) {
  LOG.debug("ChargingStationLocationImprovedEvent for [{}] received!", event.getChargingStationId());
  updateChargingStationLocation(event);
}

代码示例来源:origin: motown-io/motown

@EventHandler
protected void onEvent(EventMessage<?> message,
            @MetaData(value = CorrelationToken.KEY, required = true) CorrelationToken correlationToken) {
  final TimedEventCallback timedEventCallback = callbacks.get(correlationToken);
  if (timedEventCallback != null) {
    boolean handled = timedEventCallback.onEvent(message);
    if (handled) {
      timedEventCallback.cancelTimer();
      callbacks.remove(correlationToken);
    }
  }
}

相关文章

EventHandler类方法