策略模式的实际应用

public interface TransactionDetailProcessor {

    /**
     * 判断是否策略包含内容
     *
     * @param strategy
     * @return
     */
    boolean fitStrategy(QueryOrderDetailStrategy strategy);

    void process(OperationContext context, TransactionDetailVo target, TransactionDetailContext mapperContext);
}

 

posted @ 2023-05-22 14:27  郭慕荣  阅读(9)  评论(0编辑  收藏  举报