diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/explore/support/MapJobExplorerFactoryBean.java b/spring-batch-core/src/main/java/org/springframework/batch/core/explore/support/MapJobExplorerFactoryBean.java index 080cedd88..383a1e885 100644 --- a/spring-batch-core/src/main/java/org/springframework/batch/core/explore/support/MapJobExplorerFactoryBean.java +++ b/spring-batch-core/src/main/java/org/springframework/batch/core/explore/support/MapJobExplorerFactoryBean.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2013 the original author or authors. + * Copyright 2006-2020 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -31,8 +31,13 @@ import org.springframework.util.Assert; * {@link SimpleJobExplorer} using in-memory DAO implementations. * * @author Dave Syer + * @author Mahmoud Ben Hassine * @since 2.0 + * + * @deprecated as of v4.3 in favor of using the {@link JobExplorerFactoryBean} + * with an in-memory database. Scheduled for removal in v5.0. */ +@Deprecated public class MapJobExplorerFactoryBean extends AbstractJobExplorerFactoryBean implements InitializingBean { private MapJobRepositoryFactoryBean repositoryFactory; diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/repository/dao/MapExecutionContextDao.java b/spring-batch-core/src/main/java/org/springframework/batch/core/repository/dao/MapExecutionContextDao.java index 1af5ed5a9..39b36eada 100644 --- a/spring-batch-core/src/main/java/org/springframework/batch/core/repository/dao/MapExecutionContextDao.java +++ b/spring-batch-core/src/main/java/org/springframework/batch/core/repository/dao/MapExecutionContextDao.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2018 the original author or authors. + * Copyright 2006-2020 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -34,8 +34,12 @@ import org.springframework.util.SerializationUtils; * @author Dave Syer * @author David Turanski * @author Mahmoud Ben Hassine + * + * @deprecated as of v4.3 in favor of using the {@link JdbcExecutionContextDao} + * with an in-memory database. Scheduled for removal in v5.0. */ @SuppressWarnings("serial") +@Deprecated public class MapExecutionContextDao implements ExecutionContextDao { private final ConcurrentMap contexts = TransactionAwareProxyFactory diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/repository/dao/MapJobExecutionDao.java b/spring-batch-core/src/main/java/org/springframework/batch/core/repository/dao/MapJobExecutionDao.java index 066c97184..570ecbee5 100644 --- a/spring-batch-core/src/main/java/org/springframework/batch/core/repository/dao/MapJobExecutionDao.java +++ b/spring-batch-core/src/main/java/org/springframework/batch/core/repository/dao/MapJobExecutionDao.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2019 the original author or authors. + * Copyright 2006-2020 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -35,7 +35,11 @@ import org.springframework.util.SerializationUtils; /** * In-memory implementation of {@link JobExecutionDao}. + * + * @deprecated as of v4.3 in favor of using the {@link JdbcJobExecutionDao} + * with an in-memory database. Scheduled for removal in v5.0. */ +@Deprecated public class MapJobExecutionDao implements JobExecutionDao { // JDK6 Make this into a ConcurrentSkipListMap: adds and removes tend to be very near the front or back diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/repository/dao/MapJobInstanceDao.java b/spring-batch-core/src/main/java/org/springframework/batch/core/repository/dao/MapJobInstanceDao.java index fa4175084..f879549e9 100644 --- a/spring-batch-core/src/main/java/org/springframework/batch/core/repository/dao/MapJobInstanceDao.java +++ b/spring-batch-core/src/main/java/org/springframework/batch/core/repository/dao/MapJobInstanceDao.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2019 the original author or authors. + * Copyright 2006-2020 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -35,7 +35,11 @@ import org.springframework.util.Assert; /** * In-memory implementation of {@link JobInstanceDao}. + * + * @deprecated as of v4.3 in favor of using the {@link JdbcJobInstanceDao} + * with an in-memory database. Scheduled for removal in v5.0. */ +@Deprecated public class MapJobInstanceDao implements JobInstanceDao { private static final String STAR_WILDCARD = "\\*"; private static final String STAR_WILDCARD_PATTERN = ".*"; diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/repository/dao/MapStepExecutionDao.java b/spring-batch-core/src/main/java/org/springframework/batch/core/repository/dao/MapStepExecutionDao.java index fa181c445..2e3bed246 100644 --- a/spring-batch-core/src/main/java/org/springframework/batch/core/repository/dao/MapStepExecutionDao.java +++ b/spring-batch-core/src/main/java/org/springframework/batch/core/repository/dao/MapStepExecutionDao.java @@ -37,7 +37,11 @@ import org.springframework.util.SerializationUtils; /** * In-memory implementation of {@link StepExecutionDao}. + * + * @deprecated as of v4.3 in favor of using the {@link JdbcStepExecutionDao} + * with an in-memory database. Scheduled for removal in v5.0. */ +@Deprecated public class MapStepExecutionDao implements StepExecutionDao { private Map> executionsByJobExecutionId = new ConcurrentHashMap<>(); diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/repository/support/MapJobRepositoryFactoryBean.java b/spring-batch-core/src/main/java/org/springframework/batch/core/repository/support/MapJobRepositoryFactoryBean.java index 1e7870d76..21d8d79d8 100644 --- a/spring-batch-core/src/main/java/org/springframework/batch/core/repository/support/MapJobRepositoryFactoryBean.java +++ b/spring-batch-core/src/main/java/org/springframework/batch/core/repository/support/MapJobRepositoryFactoryBean.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2014 the original author or authors. + * Copyright 2006-2020 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -39,7 +39,12 @@ import org.springframework.transaction.PlatformTransactionManager; * multi-threaded step. * * @author Robert Kasanicky + * @author Mahmoud Ben Hassine + * + * @deprecated as of v4.3 in favor or using the {@link JobRepositoryFactoryBean} + * with an in-memory database. Scheduled for removal in v5.0. */ +@Deprecated public class MapJobRepositoryFactoryBean extends AbstractJobRepositoryFactoryBean { private MapJobExecutionDao jobExecutionDao;