@Component
public class RuntimeBatchConfigurer
extends java.lang.Object
implements org.springframework.batch.core.configuration.annotation.BatchConfigurer
BatchConfigurer
.
Allows JobRepositoryFactory
settings configurable via configuration properties.
Basically a modified copy of DefaultBatchConfigurer
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_ISOLATION_LEVEL |
Modifier | Constructor and Description |
---|---|
protected |
RuntimeBatchConfigurer() |
|
RuntimeBatchConfigurer(javax.sql.DataSource dataSource) |
Modifier and Type | Method and Description |
---|---|
protected org.springframework.batch.core.repository.JobRepository |
createJobRepository() |
org.springframework.batch.core.explore.JobExplorer |
getJobExplorer() |
org.springframework.batch.core.launch.JobLauncher |
getJobLauncher() |
org.springframework.batch.core.repository.JobRepository |
getJobRepository() |
org.springframework.transaction.PlatformTransactionManager |
getTransactionManager() |
void |
initialize() |
void |
setClobType(java.lang.Integer clobType) |
void |
setDataSource(javax.sql.DataSource dataSource) |
void |
setDbType(java.lang.String dbType) |
void |
setIsolationLevel(java.lang.String isolationLevel) |
void |
setMaxVarCharLength(int maxVarCharLength) |
void |
setTablePrefix(java.lang.String tablePrefix) |
void |
setValidateTransactionState(boolean validateTransactionState) |
public static final java.lang.String DEFAULT_ISOLATION_LEVEL
protected RuntimeBatchConfigurer()
public RuntimeBatchConfigurer(javax.sql.DataSource dataSource)
@Autowired(required=true) public void setDataSource(javax.sql.DataSource dataSource)
public org.springframework.batch.core.repository.JobRepository getJobRepository()
getJobRepository
in interface org.springframework.batch.core.configuration.annotation.BatchConfigurer
public org.springframework.transaction.PlatformTransactionManager getTransactionManager()
getTransactionManager
in interface org.springframework.batch.core.configuration.annotation.BatchConfigurer
public org.springframework.batch.core.launch.JobLauncher getJobLauncher()
getJobLauncher
in interface org.springframework.batch.core.configuration.annotation.BatchConfigurer
public org.springframework.batch.core.explore.JobExplorer getJobExplorer()
getJobExplorer
in interface org.springframework.batch.core.configuration.annotation.BatchConfigurer
@PostConstruct public void initialize()
protected org.springframework.batch.core.repository.JobRepository createJobRepository() throws java.lang.Exception
java.lang.Exception
public void setIsolationLevel(java.lang.String isolationLevel)
public void setClobType(java.lang.Integer clobType)
public void setDbType(java.lang.String dbType)
public void setMaxVarCharLength(int maxVarCharLength)
public void setTablePrefix(java.lang.String tablePrefix)
public void setValidateTransactionState(boolean validateTransactionState)