内容简介:Spring Batch 4.1.0.M3 发布了。这个里程碑的主要更新内容是添加对 JSR-305 注释的支持。利用 Spring Framework的Null-safety 注释,并在适当的 Spring Batch 的所有公共 API 中将其添加。 这些注释不仅在使用 Sp...
Spring Batch 4.1.0.M3 发布了。这个里程碑的主要更新内容是添加对 JSR-305 注释的支持。利用 Spring Framework的Null-safety 注释,并在适当的 Spring Batch 的所有公共 API 中将其添加。
这些注释不仅在使用 Spring Batch API 时强制执行 null 安全性,而且还可以由 IDE 用于提供与可空性相关的有用信息。 例如,如果用户想要实现 ItemReader 接口,那么任何支持 JSR-305 注释的 IDE 都将生成如下内容:
public class MyItemReader implements ItemReader<String> {
@Nullable
public String read() throws Exception {
return null;
}
}read 方法上的 @Nullable 注释清楚地表明此方法的契约表明它可能返回 null。 这强制执行其 Javadoc 中的内容,即当数据源耗尽时,read 方法应返回 null。
其他改进:
通过继承 DefaultBatchConfigurer 添加提供自定义事务管理器的功能
修复某些方法名称中的轻微不一致问题
下载地址:
【声明】文章转载自:开源中国社区 [http://www.oschina.net]
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网
猜你喜欢:- Spring Batch 4.0.0 正式发布,批处理框架
- Spring Batch 4.0.0.M5 发布,批处理框架
- Spring Batch 4.2 正式发布,批处理应用编写框架
- Spring Batch 4.0.0.RC1 发布,批处理框架
- Spring Batch 4.2.0.M1 发布,批处理应用编写框架
- Spring Batch 4.2.0.M1 发布,批处理应用编写框架
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
Masterminds of Programming
Federico Biancuzzi、Chromatic / O'Reilly Media / 2009-03-27 / USD 39.99
Description Masterminds of Programming features exclusive interviews with the creators of several historic and highly influential programming languages. Think along with Adin D. Falkoff (APL), Jame......一起来看看 《Masterminds of Programming》 这本书的介绍吧!