EventLoop

EventLoop 是所有事件将在其中有条不紊地处理的组件生命周期中的中心位置。通常需要围绕重绘制时间和组件状态更新进行编排。

事件循环中的所有内容均表示为 Spring 消息。

link:../../../../../src/test/java/org/springframework/shell/docs/EventLoopSnippets.java[role=include]

选择键事件使用内置过滤方法 keyEvents()

link:../../../../../src/test/java/org/springframework/shell/docs/EventLoopSnippets.java[role=include]