Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/sql-server/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Spring批属于哪种设计模式_Spring_Design Patterns_Spring Batch - Fatal编程技术网

Spring批属于哪种设计模式

Spring批属于哪种设计模式,spring,design-patterns,spring-batch,Spring,Design Patterns,Spring Batch,我正在经历著名的GoF- 我碰巧在Spring批处理框架方面做了很多工作。所以我想知道它属于哪种设计模式 我认为SpringBatch应该属于一种设计模式,其中每一层都将命令委托给一系列处理对象 我说得对吗 欢迎提出任何意见、建议和回答。Spring Batch不属于给定的设计模式,但它在其核心概念中使用了几种设计模式,如: 构建器:如FlatFileItemReaderBuilder和FlatFileItemWriterBuilder来构建项阅读器/写入器 工厂:如JobBuilderFac

我正在经历著名的GoF-

我碰巧在Spring批处理框架方面做了很多工作。所以我想知道它属于哪种设计模式

我认为SpringBatch应该属于一种设计模式,其中每一层都将命令委托给一系列处理对象

我说得对吗


欢迎提出任何意见、建议和回答。

Spring Batch不属于给定的设计模式,但它在其核心概念中使用了几种设计模式,如:

  • 构建器:如
    FlatFileItemReaderBuilder
    FlatFileItemWriterBuilder
    来构建项阅读器/写入器
  • 工厂:如
    JobBuilderFactory
    StepBuilderFactory
    来创建作业和步骤
  • 责任链:如在
    compositetemprocessor
    /
    compositetemwriter
    中,按顺序调用代理处理器/编写器链
  • 适配器:如
    ItemReaderAdapter
    itemrWriteradapter
    以将任何对象适配为读写器

要成为一个好的框架,它不一定需要遵循设计模式。也就是说,我认为它有一个多层体系结构,并且在那里实现了不同的好技术/模式。