策略模式
摘要:1、定义一个执行器抽象类 public abstract class AbstractExecutor<T> { /** * 执行业务逻辑 */ public void doExecute(T t) { try { // 初始化 this.init(t); // 执行逻辑 this.process(
阅读全文
posted @ 2021-05-27 16:04
posted @ 2021-05-27 16:04
posted @ 2021-05-14 09:40
posted @ 2021-05-12 15:15
posted @ 2021-05-12 14:47