Skip to content

Remove deprecated APIs #3836

New issue

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

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

Already on GitHub? # to your account

Closed
34 tasks done
fmbenhassine opened this issue Jan 21, 2021 · 0 comments
Closed
34 tasks done

Remove deprecated APIs #3836

fmbenhassine opened this issue Jan 21, 2021 · 0 comments
Assignees
Milestone

Comments

@fmbenhassine
Copy link
Contributor

fmbenhassine commented Jan 21, 2021

The following APIs have been marked as deprecated in previous versions and should be removed in v5:

  • Class MapJobRepositoryFactoryBean
  • Class MapExecutionContextDao
  • Class MapJobExecutionDao
  • Class MapJobInstanceDao
  • Class MapStepExecutionDao
  • Class MapJobExplorerFactoryBean
  • Class XStreamExecutionContextStringSerializer
  • Class ClassPathXmlJobRegistry
  • Class ClassPathXmlApplicationContextFactory
  • Class ScheduledJobParametersFactory
  • Class AbstractNeo4jItemReader
  • Class ListPreparedStatementSetter
  • Class RemoteChunkingMasterStepBuilder (and related TODO in BatchIntegrationNamespaceHandler)
  • Class RemoteChunkingMasterStepBuilderFactory
  • Class RemotePartitioningMasterStepBuilder
  • Class RemotePartitioningMasterStepBuilderFactory
  • Class AbstractJobTests
  • Class org.springframework.batch.item.xml.StaxUtils
  • Enum org.springframework.batch.item.file.transform.Alignment
  • Method JobExecution#stop()
  • Method JobParameters#getDouble(String key, double defaultValue)
  • Method JobParameters#getLong(String key, long defaultValue)
  • Method SimpleStepExecutionSplitter(JobRepository jobRepository, Step step, Partitioner partitioner)
  • Method SimpleStepExecutionSplitter#getStartable(StepExecution stepExecution, ExecutionContext context)
  • Method AbstractJobRepositoryFactoryBean#getJobRepository()
  • Method AbstractCursorItemReader#cleanupOnClose()
  • Method HibernateItemWriter#doWrite(HibernateOperations hibernateTemplate, List<? extends T> items)
  • Method JdbcCursorItemReader#cleanupOnClose()
  • Method StoredProcedureItemReader#cleanupOnClose()
  • Method HibernatePagingItemReaderBuilder#useSatelessSession(boolean useStatelessSession)
  • Method MultiResourceItemReader#getCurrentResource()
  • Method BatchIntegrationConfiguration#remoteChunkingMasterStepBuilderFactory()
  • Method BatchIntegrationConfiguration#remotePartitioningMasterStepBuilderFactory()
  • Method org.springframework.batch.item.util.FileUtils#setUpOutputFile(File file, boolean restarted, boolean overwriteOutputFile)
@fmbenhassine fmbenhassine added this to the 5.0.0-M1 milestone Jan 21, 2021
@fmbenhassine fmbenhassine self-assigned this Jan 21, 2021
fmbenhassine added a commit that referenced this issue Aug 17, 2021
This commit removes the deprecated Map-based job repository
and job explorer implementations with their respective DAOs.
Using the `EnableBatchProcessing` annotation now requires a
datasource bean to be defined in the application context.
This will be reviewed as part of #3942.

This commit is a first pass that updates related tests to use
the JDBC-based job repository/explorer with an embedded database.
A second pass should be done to improve tests by caching/reusing
embedded databases if possible.

Issue #3836
fmbenhassine added a commit that referenced this issue Jan 18, 2022
As of v4, spring-jdbc was optional since
Spring Batch provided a Map-based job
repository.

In v5, the Map-based job repository has
been removed and the only option now is
the Jdbc-based implementation which requires
spring-jdbc.

Resolves #4048
Related to #3836
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

1 participant