org.springframework.context.ApplicationEvent.toString()方法的使用及代码示例

x33g5p2x  于11个月前 转载在 其他  
字(3.1k)|赞(0)|评价(0)|浏览(27)

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

ApplicationEvent.toString介绍

暂无

代码示例

代码示例来源:origin: spring-projects/spring-batch

@Override
public String toString() {
  return "message=["+message+"], " + super.toString();
}

代码示例来源:origin: spring-projects/spring-batch

@Override
public String toString() {
  return "message=["+message+"], " + super.toString();
}

代码示例来源:origin: cloudfoundry/uaa

@Override
  protected void handleEvent(ApplicationEvent applicationEvent) {
    super.handleEvent(applicationEvent);

    this.events.removeIf(event -> {
      try {
        honeycombEventFactory.createEvent()
            .addField("auditEvent", event.getClass().getSimpleName())
            .addField("eventSource", event.toString())
            .addField("testName", testRunning)
            .send();
      } catch(Exception _) {}
      return true;
    });
  }
}

代码示例来源:origin: otto-de/edison-microservice

@Override
public String toString() {
  return "StateChangeEvent{" +
      "jobId='" + jobId + '\'' +
      ", jobType='" + jobType + '\'' +
      ", state=" + state +
      ", message='" + message + '\'' +
      "} " + super.toString();
}

代码示例来源:origin: org.jasig.portal/uPortal-spring

@Override
  protected void onFilteredApplicationEvent(ApplicationEvent event) {
    if (this.eventLogger.isInfoEnabled()) {
      this.eventLogger.info(event.toString());
    }
  }
}

代码示例来源:origin: alien4cloud/alien4cloud

@Override
  public void onApplicationEvent(ApplicationEvent applicationEvent) {
    if (applicationEvent instanceof SessionConnectEvent || applicationEvent instanceof SessionConnectedEvent
        || applicationEvent instanceof SessionSubscribeEvent || applicationEvent instanceof SessionUnsubscribeEvent
        || applicationEvent instanceof SessionDisconnectEvent || applicationEvent instanceof BrokerAvailabilityEvent) {
      log.info(applicationEvent.getClass().getSimpleName() + " " + applicationEvent.toString());
    }
  }
}

代码示例来源:origin: org.mule.modules/mule-module-spring-extras

public void run()
  {
    try
    {
      listener.onApplicationEvent(event);
    }
    catch (Exception e)
    {
      logger.error("Failed to forward event: " + event.toString(), e);
    }
  }
}

代码示例来源:origin: org.mule.modules/mule-module-spring-extras

public void onApplicationEvent(ApplicationEvent event)
{
  try
  {
    threadPool.execute(new Worker(listener, event));
  }
  catch (RejectedExecutionException e)
  {
    logger.error("Failed to execute worker for event: " + event.toString(), e);
  }
}

代码示例来源:origin: org.mule.modules/mule-module-spring

public void run()
  {
    try
    {
      listener.onApplicationEvent(event);
    }
    catch (Exception e)
    {
      logger.error("Failed to forward event: " + event.toString(), e);
    }
  }
}

代码示例来源:origin: org.mule.modules/mule-module-spring

public void onApplicationEvent(ApplicationEvent event)
{
  try
  {
    threadPool.execute(new Worker(listener, event));
  }
  catch (RejectedExecutionException e)
  {
    logger.error("Failed to execute worker for event: " + event.toString(), e);
  }
}

代码示例来源:origin: Jasig/uPortal

failedEvents.append("\n\t");
try {
  failedEvents.append(portalEvent.toString());
} catch (Exception e) {
  failedEvents

相关文章

最新文章

更多