Search in sources :

Example 1 with MapJobRepositoryFactoryBean

use of org.springframework.batch.core.repository.support.MapJobRepositoryFactoryBean in project hub-alert by blackducksoftware.

the class Application method mapJobRepositoryFactory.

@Bean
public MapJobRepositoryFactoryBean mapJobRepositoryFactory() throws Exception {
    final MapJobRepositoryFactoryBean factory = new MapJobRepositoryFactoryBean(transactionManager());
    factory.afterPropertiesSet();
    return factory;
}
Also used : MapJobRepositoryFactoryBean(org.springframework.batch.core.repository.support.MapJobRepositoryFactoryBean) MapJobRepositoryFactoryBean(org.springframework.batch.core.repository.support.MapJobRepositoryFactoryBean) Bean(org.springframework.context.annotation.Bean)

Example 2 with MapJobRepositoryFactoryBean

use of org.springframework.batch.core.repository.support.MapJobRepositoryFactoryBean in project tutorials by eugenp.

the class ChunksConfig method jobRepository.

@Bean
public JobRepository jobRepository() throws Exception {
    MapJobRepositoryFactoryBean factory = new MapJobRepositoryFactoryBean();
    factory.setTransactionManager(transactionManager());
    return (JobRepository) factory.getObject();
}
Also used : JobRepository(org.springframework.batch.core.repository.JobRepository) MapJobRepositoryFactoryBean(org.springframework.batch.core.repository.support.MapJobRepositoryFactoryBean) MapJobRepositoryFactoryBean(org.springframework.batch.core.repository.support.MapJobRepositoryFactoryBean) Bean(org.springframework.context.annotation.Bean)

Example 3 with MapJobRepositoryFactoryBean

use of org.springframework.batch.core.repository.support.MapJobRepositoryFactoryBean in project hub-alert by blackducksoftware.

the class ApplicationConfiguration method mapJobRepositoryFactory.

@Bean
public MapJobRepositoryFactoryBean mapJobRepositoryFactory() throws Exception {
    MapJobRepositoryFactoryBean factory = new MapJobRepositoryFactoryBean(transactionManager());
    factory.afterPropertiesSet();
    return factory;
}
Also used : MapJobRepositoryFactoryBean(org.springframework.batch.core.repository.support.MapJobRepositoryFactoryBean) MapJobRepositoryFactoryBean(org.springframework.batch.core.repository.support.MapJobRepositoryFactoryBean) Bean(org.springframework.context.annotation.Bean)

Example 4 with MapJobRepositoryFactoryBean

use of org.springframework.batch.core.repository.support.MapJobRepositoryFactoryBean in project tutorials by eugenp.

the class TaskletsConfig method jobRepository.

@Bean
public JobRepository jobRepository() throws Exception {
    MapJobRepositoryFactoryBean factory = new MapJobRepositoryFactoryBean();
    factory.setTransactionManager(transactionManager());
    return (JobRepository) factory.getObject();
}
Also used : JobRepository(org.springframework.batch.core.repository.JobRepository) MapJobRepositoryFactoryBean(org.springframework.batch.core.repository.support.MapJobRepositoryFactoryBean) MapJobRepositoryFactoryBean(org.springframework.batch.core.repository.support.MapJobRepositoryFactoryBean) Bean(org.springframework.context.annotation.Bean)

Aggregations

MapJobRepositoryFactoryBean (org.springframework.batch.core.repository.support.MapJobRepositoryFactoryBean)4 Bean (org.springframework.context.annotation.Bean)4 JobRepository (org.springframework.batch.core.repository.JobRepository)2