本文整理了Java中org.axonframework.eventhandling.annotation.EventHandler
类的一些代码示例,展示了EventHandler
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。EventHandler
类的具体详情如下:
包路径:org.axonframework.eventhandling.annotation.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);
}
}
}
内容来源于网络,如有侵权,请联系作者删除!