107 wires and counting
$ status: archived — this briefing has stopped; the archive stays readable. browse live briefings →

$ status

wire 2026-09-14
stories 5

© 2026 RepoJournal Home Showcase Explore How it works Privacy

$ the-wire · showcase

Spring Batch deprecates setters for required dependencies

By RepoJournal · Filed · About Spring · Composed from the cited sources · methodology

Spring Batch's v6.0 API redesign reaches into constructors, deprecating setter injection for mandatory collaborators and narrowing several redundant APIs ahead of removal, while the Mongo job repository loosens its transaction-manager coupling.

Deprecate setters for constructor-injected required dependencies spring-projects/spring-batch

by Mahmoud Ben Hassine

Setters for constructor-injected required dependencies on item readers and writers are now deprecated, continuing the v6.0 push toward fail-fast construction and immutability; setResource is deliberately left alone on item streams implementing ResourceAware, since it is the sole contract method available there. Code that configures mandatory collaborators through setters should move to construc...

Deprecate `JobInstance::getInstanceId` for removal to eliminate redundancy spring-projects/spring-batch

by Yanming Zhou

JobInstance::getInstanceId is deprecated for removal, with the redundancy it duplicates left as the replacement path. Any code that reads a JobInstance's id through that method needs to migrate.

Allow to use Mongo JobRepository with any PlatformTransactionManager spring-projects/spring-batch

by Yanming Zhou

Mongo JobRepository no longer requires a MongoTransactionManager, aligning it with the JDBC implementation so ResourcelessTransactionManager and other custom PlatformTransactionManager implementations work.

Remove redundant methods which are identical to default method spring-projects/spring-batch

by Yanming Zhou

Methods identical to their interface default counterparts were removed outright, a source-level break for anything that overrode or invoked them.

Add caching for native build tools spring-projects/spring-aot-smoke-tests

by Moritz Halbritter

Elsewhere, the AOT smoke tests now cache native build tools, trimming repeated work in the native build path.

Quick answers

What shipped in Spring on September 14, 2026?
Spring Batch's v6.0 API redesign reaches into constructors, deprecating setter injection for mandatory collaborators and narrowing several redundant APIs ahead of removal, while the Mongo job repository loosens its transaction-manager coupling. In total, 5 commits landed.
Who contributed to Spring on September 14, 2026?
3 developers shipped this update, including Moritz Halbritter, Mahmoud Ben Hassine, and Yanming Zhou.
What were the notable Spring updates?
Deprecate setters for constructor-injected required dependencies, Deprecate `JobInstance::getInstanceId` for removal to eliminate redundancy, and Allow to use Mongo JobRepository with any PlatformTransactionManager.