报告不正确的 Spring Integration 端点方法声明。

示例:


class MyEndpoints {
  @InboundChannelAdapter("channel")
  public void cannotBeVoid() {...} // 使用 @InboundChannelAdapter 注解的方法必须具有返回类型

  @InboundChannelAdapter("channel")
  public String cannotHaveParams(String s) {..} // 使用 @InboundChannelAdapter 注解的方法不能有参数

  @Filter(inputChannel = "channel", // 端点只能具有一个轮询器
    outputChannel = "channel2",
    poller = {@Poller(fixedDelay = "100"), @Poller(fixedRate = "100")})
  public void testMultiplePollers() {
  }

  @Filter(inputChannel = "channel",
  outputChannel = "channel2",
  poller = @Poller(value = "poller", maxMessagesPerPoll = "100"))
  public void testValue() {
  }

  @Filter(inputChannel = "channel",
    outputChannel = "channel2",
    poller = @Poller(trigger = "trigger", cron = "0 */10 * * * *")) // 'trigger' 特性与其他特性互斥
  public void testTrigger() {
  }
}