# Deprecated API

## Contents

- Deprecated Classes
- Deprecated Methods
- Deprecated Constructors

- Deprecated Classes
  Class and Description
  org.springframework.batch.test.AbstractJobTests (from 2.1) use `JobLauncherTestUtils` instead
  org.springframework.batch.core.configuration.support.ClassPathXmlApplicationContextFactory use `GenericApplicationContextFactory` instead
  org.springframework.batch.core.configuration.support.ClassPathXmlJobRegistry in version 2.1, please us `AutomaticJobRegistrar` instead
  org.springframework.batch.item.database.IbatisBatchItemWriter as of Spring Batch 3.0, in favor of the native Spring Batch support in the MyBatis follow-up project (http://mybatis.github.io/spring/)
  org.springframework.batch.item.database.IbatisPagingItemReader as of Spring Batch 3.0, in favor of the native Spring Batch support in the MyBatis follow-up project (http://mybatis.github.io/spring/)

- Deprecated Methods
  Method and Description
  org.springframework.batch.item.database.HibernateItemWriter.doWrite(HibernateOperations, List<? extends T>) As of 2.2 in favor of using Hibernate's session management APIs directly
  org.springframework.batch.core.repository.support.AbstractJobRepositoryFactoryBean.getJobRepository() use `AbstractJobRepositoryFactoryBean.getObject()` instead
  org.springframework.batch.core.job.flow.support.state.StepState.getStep() in favor of using `StepLocator.getStep(String)`.
  org.springframework.batch.item.database.HibernateItemWriter.setHibernateTemplate(HibernateOperations) As of 2.2 in favor of using Hibernate's session management APIs directly
  org.springframework.batch.item.util.FileUtils.setUpOutputFile(File, boolean, boolean) use the version with explicit append parameter instead. Here append=false is assumed.

- Deprecated Constructors
  Constructor and Description
  org.springframework.batch.core.partition.support.SimpleStepExecutionSplitter(JobRepository, Step, Partitioner) use `SimpleStepExecutionSplitter.SimpleStepExecutionSplitter(JobRepository, boolean, String, Partitioner)` instead