业务框架 - 提供 action 构建时的监听回调
iohao opened this issue · comments
渔民小镇 commented
新增功能的使用场景
开发者可以利用该接口观察 action 构建过程,或者做一些额外的扩展。
渔民小镇 commented
扩展示例参考
// 简单打印
public final class YourActionParserListener implements ActionParserListener {
@Override
public void onActionCommand(ActionParserContext context) {
ActionCommand actionCommand = context.getActionCommand();
log.info(actionCommand);
}
}
void test() {
BarSkeletonBuilder builder = ...;
builder.addActionParserListener(new YourActionParserListener());
}
其他参考