Skip to content

Revisit the configuration code of EnableBatchProcessing #4193

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

fmbenhassine
Copy link
Contributor

@fmbenhassine fmbenhassine commented Sep 16, 2022

Before this commit, the configuration of infrastructure beans was confusing and not straightforward to customize. This commit changes the way Batch infrastructure beans are configured. The most important changes are:

  • EnableBatchProcessing now provides new attributes to configure properties of infrastructure beans
  • Bean registration is now done programmatically with a BeanDefinitionRegistrar instead of importing a class with statically annotated bean definition methods
  • Bean are now resolved from the application context directly instead of being resolved from a BatchConfigurer
  • Both a data source and a transaction manager are now required to be defined in the application context
  • AbstractBatchConfiguration is now intended to be extended by user code to get/customize infrastructure beans

Issue #3942

Before this commit, the configuration of infrastructure beans
was confusing and not straightforward to customize. This commit
changes the way Batch infrastructure beans are configured.
The most important changes are:

* EnableBatchProcessing now provides new attributes to
configure properties of infrastructure beans
* Bean registration is now done programmatically with a
BeanDefinitionRegistrar instead of importing a class with
statically annotated bean definition methods
* Bean are now resolved from the application context directly
instead of being resolved from a BatchConfigurer
* Both a data source and a transaction manager are now
required to be defined in the application context
* AbstractBatchConfiguration is now intended to be extended
by users code to get/customize basic infrastructure beans

Issue spring-projects#3942

Revisit the configuration code of EnableBatchProcessing

Before this commit, the configuration of infrastructure beans
was confusing and not straightforward to customize. This commit
changes the way Batch infrastructure beans are configured.
The most important changes are:

* EnableBatchProcessing now provides new attributes to
configure properties of infrastructure beans
* Bean registration is now done programmatically with a
BeanDefinitionRegistrar instead of importing a class with
statically annotated bean definition methods
* Bean are now resolved from the application context directly
instead of being resolved from a BatchConfigurer
* Both a data source and a transaction manager are now
required to be defined in the application context
* AbstractBatchConfiguration is now intended to be extended
by users code to get/customize basic infrastructure beans

Issue spring-projects#3942
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant