From 5dc17b190e95c87463f96bc27d8d5292c46006ff Mon Sep 17 00:00:00 2001
From: Mahmoud Ben Hassine
Date: Thu, 23 Sep 2021 08:29:13 +0200
Subject: [PATCH] Upgrade dependencies to major versions for Spring Batch 5
* Upgrade to Jakarta EE 9
* Upgrade to Spring Framework 6
* Upgrade to Spring Integration 6
* Upgrade to Spring Data 3
* Upgrade to Spring AMQP 3
* Upgrade to Spring for Apache Kafka 3
LDIF support is still in progress waiting for the next
major version of Spring LDAP.
Closes #4027
Closes #3656
---
pom.xml | 46 +--
spring-batch-core/pom.xml | 24 +-
.../batch/core/BatchStatus.java | 18 +-
.../batch/core/JobInstance.java | 6 +-
.../annotation/DefaultBatchConfigurer.java | 2 +-
.../xml/StepParserStepFactoryBean.java | 42 +--
.../batch/core/jsr/ChunkListenerAdapter.java | 11 +-
.../core/jsr/ItemProcessListenerAdapter.java | 10 +-
.../core/jsr/ItemReadListenerAdapter.java | 10 +-
.../core/jsr/ItemWriteListenerAdapter.java | 11 +-
.../batch/core/jsr/JobListenerAdapter.java | 7 +-
.../batch/core/jsr/JsrJobContext.java | 26 +-
.../core/jsr/JsrJobContextFactoryBean.java | 7 +-
.../batch/core/jsr/JsrJobExecution.java | 27 +-
.../core/jsr/JsrJobListenerMetaData.java | 5 +-
.../batch/core/jsr/JsrStepContext.java | 51 ++--
.../core/jsr/JsrStepContextFactoryBean.java | 11 +-
.../batch/core/jsr/JsrStepExecution.java | 41 +--
.../core/jsr/JsrStepListenerMetaData.java | 25 +-
.../core/jsr/RetryProcessListenerAdapter.java | 7 +-
.../core/jsr/RetryReadListenerAdapter.java | 7 +-
.../core/jsr/RetryWriteListenerAdapter.java | 7 +-
.../batch/core/jsr/SimpleMetric.java | 9 +-
.../batch/core/jsr/SkipListenerAdapter.java | 10 +-
.../batch/core/jsr/StepListenerAdapter.java | 7 +-
...rAutowiredAnnotationBeanPostProcessor.java | 4 +-
...gAutowiredAnnotationBeanPostProcessor.java | 6 +-
.../xml/DecisionStepFactoryBean.java | 5 +-
.../jsr/configuration/xml/JobFactoryBean.java | 5 +-
.../xml/JsrJobListenerFactoryBean.java | 5 +-
.../configuration/xml/StepFactoryBean.java | 25 +-
.../batch/core/jsr/launch/JsrJobOperator.java | 54 ++--
.../BatchPropertyBeanPostProcessor.java | 9 +-
.../jsr/partition/JsrPartitionHandler.java | 26 +-
.../partition/PartitionCollectorAdapter.java | 6 +-
.../JsrBeanScopeBeanFactoryPostProcessor.java | 9 +-
.../batch/core/jsr/step/DecisionStep.java | 11 +-
.../batch/core/jsr/step/PartitionStep.java | 6 +-
.../jsr/step/batchlet/BatchletAdapter.java | 7 +-
.../core/jsr/step/batchlet/package-info.java | 2 +-
.../step/builder/JsrPartitionStepBuilder.java | 3 +-
.../item/JsrFaultTolerantChunkProcessor.java | 2 +-
.../CompositeRetryProcessListener.java | 5 +-
.../listener/CompositeRetryReadListener.java | 5 +-
.../listener/CompositeRetryWriteListener.java | 5 +-
.../listener/MulticasterBatchListener.java | 10 +-
.../builder/FaultTolerantStepBuilder.java | 2 +-
...r => jakarta.batch.operations.JobOperator} | 0
.../batch/core/BatchStatusTests.java | 17 +-
.../annotation/DataSourceConfiguration.java | 2 +-
.../JobLoaderConfigurationTests.java | 5 +-
.../TaskletStepAllowStartIfCompleteTests.java | 2 +-
.../batch/core/jsr/AbstractJsrTestCase.java | 21 +-
.../core/jsr/ChunkListenerAdapterTests.java | 4 +-
.../jsr/ItemProcessListenerAdapterTests.java | 4 +-
.../jsr/ItemReadListenerAdapterTests.java | 4 +-
.../jsr/ItemWriteListenerAdapterTests.java | 4 +-
.../core/jsr/JobListenerAdapterTests.java | 4 +-
.../jsr/JsrJobContextFactoryBeanTests.java | 4 +-
.../batch/core/jsr/JsrJobContextTests.java | 2 +-
.../batch/core/jsr/JsrJobExecutionTests.java | 4 +-
.../jsr/JsrStepContextFactoryBeanTests.java | 2 +-
.../batch/core/jsr/JsrStepContextTests.java | 8 +-
.../batch/core/jsr/JsrStepExecutionTests.java | 8 +-
.../batch/core/jsr/SimpleMetricTests.java | 6 +-
.../core/jsr/StepListenerAdapterTests.java | 4 +-
.../xml/ChunkListenerParsingTests.java | 6 +-
.../xml/CountingItemProcessor.java | 4 +-
.../xml/CustomWiredJsrJobOperatorTests.java | 9 +-
.../xml/DecisionStepFactoryBeanTests.java | 6 +-
.../xml/ExceptionHandlingParsingTests.java | 20 +-
.../configuration/xml/FlowParserTests.java | 17 +-
.../xml/ItemListenerParsingTests.java | 4 +-
.../xml/ItemSkipParsingTests.java | 20 +-
.../xml/JobListenerParsingTests.java | 4 +-
.../xml/JobPropertySubstitutionTests.java | 13 +-
.../configuration/xml/JobPropertyTests.java | 33 ++-
.../JsrBeanDefinitionDocumentReaderTests.java | 7 +-
.../xml/JsrDecisionParsingTests.java | 6 +-
.../xml/PartitionParserTests.java | 34 +--
.../configuration/xml/RetryListenerTests.java | 17 +-
.../xml/SimpleItemBasedJobParsingTests.java | 6 +-
.../xml/SimpleJobParsingTests.java | 4 +-
.../xml/StepListenerParsingTests.java | 4 +-
...ocalClassloaderBeanPostProcessorTests.java | 6 +-
...sloaderBeanPostProcessorTestsBatchlet.java | 12 +-
.../core/jsr/job/flow/JsrFlowJobTests.java | 6 +-
.../flow/support/state/JsrEndStateTests.java | 9 +-
.../core/jsr/launch/JsrJobOperatorTests.java | 50 ++--
.../partition/JsrPartitionHandlerTests.java | 26 +-
.../PartitionCollectorAdapterTests.java | 4 +-
.../core/jsr/step/DecisionStepTests.java | 12 +-
.../batch/core/jsr/step/SplitTests.java | 20 +-
.../step/batchlet/BatchletAdapterTests.java | 4 +-
.../jsr/step/batchlet/BatchletSupport.java | 4 +-
.../jsr/step/batchlet/FailingBatchlet.java | 5 +-
.../jsr/step/batchlet/RestartBatchlet.java | 4 +-
.../ExitStatusSettingStepListener.java | 11 +-
.../batch/core/test/ldif/LdifReaderTests.java | 4 +-
.../test/ldif/MappingLdifReaderTests.java | 4 +-
.../ldif/builder/LdifReaderBuilderTests.java | 5 +-
.../MappingLdifReaderBuilderTests.java | 5 +-
.../src/main/asciidoc/jsr-352.adoc | 32 +-
spring-batch-infrastructure/pom.xml | 72 +++--
.../item/database/JpaCursorItemReader.java | 8 +-
.../batch/item/database/JpaItemWriter.java | 9 +-
.../item/database/JpaPagingItemReader.java | 13 +-
.../builder/JpaCursorItemReaderBuilder.java | 6 +-
.../builder/JpaItemWriterBuilder.java | 4 +-
.../builder/JpaPagingItemReaderBuilder.java | 6 +-
.../orm/AbstractJpaQueryProvider.java | 7 +-
.../database/orm/JpaNamedQueryProvider.java | 4 +-
.../database/orm/JpaNativeQueryProvider.java | 5 +-
.../item/database/orm/JpaQueryProvider.java | 7 +-
.../batch/item/jms/JmsItemReader.java | 5 +-
.../jms/JmsMethodArgumentsKeyGenerator.java | 7 +-
.../jms/JmsNewMethodArgumentsIdentifier.java | 7 +-
.../jms/builder/JmsItemReaderBuilder.java | 5 +-
.../mail/javamail/MimeMessageItemWriter.java | 5 +-
.../BeanValidatingItemProcessor.java | 4 +-
.../batch/jsr/item/CheckpointSupport.java | 7 +-
.../batch/jsr/item/ItemProcessorAdapter.java | 4 +-
.../batch/jsr/item/ItemReaderAdapter.java | 5 +-
.../batch/jsr/item/ItemWriterAdapter.java | 5 +-
.../repeat/CheckpointAlgorithmAdapter.java | 7 +-
.../jms/BatchMessageListenerContainer.java | 11 +-
...sageListenerContainerIntegrationTests.java | 8 +-
.../BatchMessageListenerContainerTests.java | 14 +-
.../JpaItemWriterIntegrationTests.java | 2 +-
.../item/database/JpaItemWriterTests.java | 6 +-
...paNativeQueryProviderIntegrationTests.java | 7 +-
.../JpaPagingItemReaderAsyncTests.java | 4 +-
.../JpaPagingItemReaderCommonTests.java | 4 +-
.../JpaPagingItemReaderIntegrationTests.java | 5 +-
...gItemReaderNamedQueryIntegrationTests.java | 4 +-
...ItemReaderNativeQueryIntegrationTests.java | 3 +-
.../JpaPagingItemReaderParameterTests.java | 4 +-
.../JpaCursorItemReaderBuilderTests.java | 2 +-
.../builder/JpaItemWriterBuilderTests.java | 4 +-
.../JpaPagingItemReaderBuilderTests.java | 2 +-
.../orm/JpaNamedQueryProviderTests.java | 8 +-
.../support/JpaNativeQueryProviderTests.java | 7 +-
.../batch/item/jms/JmsItemReaderTests.java | 4 +-
.../JmsMethodArgumentsKeyGeneratorTests.java | 5 +-
.../JmsNewMethodArgumentsIdentifierTests.java | 5 +-
.../builder/JmsItemReaderBuilderTests.java | 4 +-
.../mail/DefaultMailErrorHandlerTests.java | 5 +-
.../SimpleMailMessageItemWriterTests.java | 5 +-
...mpleMailMessageItemWriterBuilderTests.java | 5 +-
.../javamail/MimeMessageItemWriterTests.java | 9 +-
.../batch/item/sample/Foo.java | 8 +-
.../batch/item/sample/Person.java | 8 +-
.../batch/item/sample/books/Author.java | 15 +-
.../batch/item/sample/books/Book.java | 9 +-
.../BeanValidatingItemProcessorTests.java | 2 +-
.../item/xml/StaxEventItemWriterTests.java | 4 +-
.../StaxEventItemReaderBuilderTests.java | 2 +-
.../StaxEventItemWriterBuilderTests.java | 2 +-
.../batch/item/xml/domain/QualifiedTrade.java | 13 +-
.../batch/item/xml/domain/Trade.java | 7 +-
.../jsr/item/ItemProcessorAdapterTests.java | 2 +-
.../jsr/item/ItemReaderAdapterTests.java | 2 +-
.../jsr/item/ItemWriterAdapterTests.java | 2 +-
.../batch/repeat/jms/AsynchronousTests.java | 8 +-
.../batch/repeat/jms/SynchronousTests.java | 6 +-
.../src/test/resources/broker.xml | 12 +
.../springframework/batch/jms/jms-context.xml | 23 +-
spring-batch-integration/pom.xml | 14 +-
.../src/test/resources/broker.xml | 12 +
.../src/test/resources/jms-context.xml | 24 +-
.../artifacts/jsr352-api-sigtest-java6.sig | 274 +++++++++---------
.../artifacts/jsr352-api-sigtest-java7.sig | 274 +++++++++---------
.../jsr352-tck-1.0/jsr352-tck.properties | 2 +-
spring-batch-jsr352-tck/pom.xml | 6 +-
spring-batch-samples/pom.xml | 47 ++-
.../config/DataSourceConfiguration.java | 5 +-
.../domain/mail/internal/TestMailSender.java | 5 +-
.../sample/domain/person/PersonService.java | 5 +-
.../sample/domain/trade/CustomerCredit.java | 8 +-
.../sample/jsr352/JsrSampleBatchlet.java | 8 +-
.../sample/jsr352/JsrSampleItemProcessor.java | 4 +-
.../sample/jsr352/JsrSampleItemReader.java | 4 +-
.../sample/jsr352/JsrSampleItemWriter.java | 4 +-
.../batch/sample/jsr352/JsrSampleTasklet.java | 4 +-
.../metrics/PrometheusConfiguration.java | 17 +-
.../remotechunking/ManagerConfiguration.java | 6 +-
.../remotechunking/WorkerConfiguration.java | 6 +-
.../BrokerConfiguration.java | 8 +-
.../aggregating/ManagerConfiguration.java | 4 +-
.../aggregating/WorkerConfiguration.java | 4 +-
.../polling/ManagerConfiguration.java | 4 +-
.../polling/WorkerConfiguration.java | 2 +-
.../sample/validation/domain/Person.java | 4 +-
.../RemoteChunkingJobFunctionalTests.java | 24 +-
.../RemotePartitioningJobFunctionalTests.java | 18 +-
.../sample/jsr352/JsrConfigSampleTests.java | 11 +-
.../batch/test/JsrTestUtils.java | 14 +-
197 files changed, 1295 insertions(+), 1172 deletions(-)
rename spring-batch-core/src/main/resources/META-INF/services/{javax.batch.operations.JobOperator => jakarta.batch.operations.JobOperator} (100%)
create mode 100644 spring-batch-infrastructure/src/test/resources/broker.xml
create mode 100644 spring-batch-integration/src/test/resources/broker.xml
diff --git a/pom.xml b/pom.xml
index b506f7e41..8c6a7bbaa 100644
--- a/pom.xml
+++ b/pom.xml
@@ -52,28 +52,29 @@
17
- 5.3.10-SNAPSHOT
+ 6.0.0-SNAPSHOT
1.3.1
- 5.5.4-SNAPSHOT
+ 6.0.0-SNAPSHOT
1.7.4-SNAPSHOT
2.12.3
- 2.6.0-SNAPSHOT
- 2.6.0-SNAPSHOT
- 2.6.0-SNAPSHOT
- 3.3.0-SNAPSHOT
- 2.7.7-SNAPSHOT
- 2.4.0-SNAPSHOT
+ 3.0.0-SNAPSHOT
+ 3.0.0-SNAPSHOT
+ 3.0.0-SNAPSHOT
+ 4.0.0-SNAPSHOT
+ 3.0.0-SNAPSHOT
+ 3.0.0-SNAPSHOT
2.3.5.BUILD-SNAPSHOT
1.9.2
2.8.6
- 5.4.30.Final
- 1.3.2
- 1.6.2
- 2.0.1
- 1.0
- 2.0.1.Final
+ 5.6.1.Final
+ 2.0.0
+ 2.0.1
+ 3.0.0
+ 2.0.0
+ 3.0.0
+ 3.0.0
3.2.21
4.2.3
1.4.16
@@ -92,12 +93,15 @@
1.4.200
3.34.0
10.14.2.0
- 5.15.14
- 2.3.1
- 2.3.0.1
+ 2.19.0
+ 3.0.0
2.14.1
- 6.2.0.Final
- 3.0.0
+ 7.0.1.Final
+ 4.0.0
+ 4.0.2
+ 2.0.0
+ 3.0.1
+ 2.0.1
6.2.5
1.9.6
8.0.23
@@ -108,12 +112,10 @@
1.3.1
1.15.3
1.0
- 1
1.5.0
- 5.4.30.Final
- 2.4.0-SNAPSHOT
+ 3.0.0-SNAPSHOT
2.3.2
0.10.0
2.5.14
diff --git a/spring-batch-core/pom.xml b/spring-batch-core/pom.xml
index e06b51e41..28e240455 100644
--- a/spring-batch-core/pom.xml
+++ b/spring-batch-core/pom.xml
@@ -51,9 +51,9 @@
${jackson.version}
- javax.batch
- javax.batch-api
- ${javax.batch-api.version}
+ jakarta.batch
+ jakarta.batch-api
+ ${jakarta.batch-api.version}
io.micrometer
@@ -63,9 +63,9 @@
- javax.annotation
- javax.annotation-api
- ${javax.annotation-api.version}
+ jakarta.annotation
+ jakarta.annotation-api
+ ${jakarta.annotation-api.version}
true
@@ -239,9 +239,9 @@
test
- javax.xml.bind
- jaxb-api
- ${jaxb-api.version}
+ jakarta.xml.bind
+ jakarta.xml.bind-api
+ ${jakarta.xml.bind-api.version}
test
@@ -263,9 +263,9 @@
test
- javax.inject
- javax.inject
- ${javax.inject.version}
+ jakarta.inject
+ jakarta.inject-api
+ ${jakarta.inject-api.version}
test
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/BatchStatus.java b/spring-batch-core/src/main/java/org/springframework/batch/core/BatchStatus.java
index fab23ada7..05a4757a7 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/BatchStatus.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/BatchStatus.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006-2018 the original author or authors.
+ * Copyright 2006-2021 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.
@@ -113,21 +113,21 @@ public enum BatchStatus {
*
* @return JSR-352 equivalent to the current status
*/
- public javax.batch.runtime.BatchStatus getBatchStatus() {
+ public jakarta.batch.runtime.BatchStatus getBatchStatus() {
if(this == ABANDONED) {
- return javax.batch.runtime.BatchStatus.ABANDONED;
+ return jakarta.batch.runtime.BatchStatus.ABANDONED;
} else if(this == COMPLETED) {
- return javax.batch.runtime.BatchStatus.COMPLETED;
+ return jakarta.batch.runtime.BatchStatus.COMPLETED;
} else if(this == STARTED) {
- return javax.batch.runtime.BatchStatus.STARTED;
+ return jakarta.batch.runtime.BatchStatus.STARTED;
} else if(this == STARTING) {
- return javax.batch.runtime.BatchStatus.STARTING;
+ return jakarta.batch.runtime.BatchStatus.STARTING;
} else if(this == STOPPED) {
- return javax.batch.runtime.BatchStatus.STOPPED;
+ return jakarta.batch.runtime.BatchStatus.STOPPED;
} else if(this == STOPPING) {
- return javax.batch.runtime.BatchStatus.STOPPING;
+ return jakarta.batch.runtime.BatchStatus.STOPPING;
} else {
- return javax.batch.runtime.BatchStatus.FAILED;
+ return jakarta.batch.runtime.BatchStatus.FAILED;
}
}
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/JobInstance.java b/spring-batch-core/src/main/java/org/springframework/batch/core/JobInstance.java
index fb6460696..5c9aeb46c 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/JobInstance.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/JobInstance.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006-2018 the original author or authors.
+ * Copyright 2006-2021 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.
@@ -30,7 +30,7 @@ import org.springframework.util.Assert;
* @see Job
* @see JobParameters
* @see JobExecution
- * @see javax.batch.runtime.JobInstance
+ * @see jakarta.batch.runtime.JobInstance
*
* @author Lucas Ward
* @author Dave Syer
@@ -40,7 +40,7 @@ import org.springframework.util.Assert;
*
*/
@SuppressWarnings("serial")
-public class JobInstance extends Entity implements javax.batch.runtime.JobInstance{
+public class JobInstance extends Entity implements jakarta.batch.runtime.JobInstance{
private final String jobName;
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/annotation/DefaultBatchConfigurer.java b/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/annotation/DefaultBatchConfigurer.java
index 78b9c1267..d3e7a75e6 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/annotation/DefaultBatchConfigurer.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/annotation/DefaultBatchConfigurer.java
@@ -15,7 +15,7 @@
*/
package org.springframework.batch.core.configuration.annotation;
-import javax.annotation.PostConstruct;
+import jakarta.annotation.PostConstruct;
import javax.sql.DataSource;
import org.springframework.batch.core.configuration.BatchConfigurationException;
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/xml/StepParserStepFactoryBean.java b/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/xml/StepParserStepFactoryBean.java
index 6e5da43d8..d418546c4 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/xml/StepParserStepFactoryBean.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/xml/StepParserStepFactoryBean.java
@@ -25,13 +25,13 @@ import java.util.Map;
import java.util.Queue;
import java.util.Set;
import java.util.concurrent.locks.ReentrantLock;
-import javax.batch.api.chunk.listener.RetryProcessListener;
-import javax.batch.api.chunk.listener.RetryReadListener;
-import javax.batch.api.chunk.listener.RetryWriteListener;
-import javax.batch.api.chunk.listener.SkipProcessListener;
-import javax.batch.api.chunk.listener.SkipReadListener;
-import javax.batch.api.chunk.listener.SkipWriteListener;
-import javax.batch.api.partition.PartitionCollector;
+import jakarta.batch.api.chunk.listener.RetryProcessListener;
+import jakarta.batch.api.chunk.listener.RetryReadListener;
+import jakarta.batch.api.chunk.listener.RetryWriteListener;
+import jakarta.batch.api.chunk.listener.SkipProcessListener;
+import jakarta.batch.api.chunk.listener.SkipReadListener;
+import jakarta.batch.api.chunk.listener.SkipWriteListener;
+import jakarta.batch.api.partition.PartitionCollector;
import org.springframework.batch.core.ChunkListener;
import org.springframework.batch.core.ItemProcessListener;
@@ -242,14 +242,14 @@ public class StepParserStepFactoryBean implements FactoryBean, BeanN
private StepExecutionAggregator stepExecutionAggregator;
/**
- * @param queue The {@link Queue} that is used for communication between {@link javax.batch.api.partition.PartitionCollector} and {@link javax.batch.api.partition.PartitionAnalyzer}
+ * @param queue The {@link Queue} that is used for communication between {@link jakarta.batch.api.partition.PartitionCollector} and {@link jakarta.batch.api.partition.PartitionAnalyzer}
*/
public void setPartitionQueue(Queue queue) {
this.partitionQueue = queue;
}
/**
- * Used to coordinate access to the partition queue between the {@link javax.batch.api.partition.PartitionCollector} and {@link javax.batch.api.partition.AbstractPartitionAnalyzer}
+ * Used to coordinate access to the partition queue between the {@link jakarta.batch.api.partition.PartitionCollector} and {@link jakarta.batch.api.partition.AbstractPartitionAnalyzer}
*
* @param lock a lock that will be locked around accessing the partition queue
*/
@@ -312,8 +312,8 @@ public class StepParserStepFactoryBean implements FactoryBean, BeanN
for (Object listener : stepExecutionListeners) {
if(listener instanceof StepExecutionListener) {
builder.listener((StepExecutionListener) listener);
- } else if(listener instanceof javax.batch.api.listener.StepListener) {
- builder.listener(new StepListenerAdapter((javax.batch.api.listener.StepListener) listener));
+ } else if(listener instanceof jakarta.batch.api.listener.StepListener) {
+ builder.listener(new StepListenerAdapter((jakarta.batch.api.listener.StepListener) listener));
}
}
}
@@ -833,40 +833,40 @@ public class StepParserStepFactoryBean implements FactoryBean, BeanN
StepExecutionListener stepExecutionListener = (StepExecutionListener) listener;
stepExecutionListeners.add(stepExecutionListener);
}
- if(listener instanceof javax.batch.api.listener.StepListener) {
- StepExecutionListener stepExecutionListener = new StepListenerAdapter((javax.batch.api.listener.StepListener) listener);
+ if(listener instanceof jakarta.batch.api.listener.StepListener) {
+ StepExecutionListener stepExecutionListener = new StepListenerAdapter((jakarta.batch.api.listener.StepListener) listener);
stepExecutionListeners.add(stepExecutionListener);
}
if (listener instanceof ChunkListener) {
ChunkListener chunkListener = (ChunkListener) listener;
chunkListeners.add(chunkListener);
}
- if(listener instanceof javax.batch.api.chunk.listener.ChunkListener) {
- ChunkListener chunkListener = new ChunkListenerAdapter((javax.batch.api.chunk.listener.ChunkListener) listener);
+ if(listener instanceof jakarta.batch.api.chunk.listener.ChunkListener) {
+ ChunkListener chunkListener = new ChunkListenerAdapter((jakarta.batch.api.chunk.listener.ChunkListener) listener);
chunkListeners.add(chunkListener);
}
if (listener instanceof ItemReadListener) {
ItemReadListener readListener = (ItemReadListener) listener;
readListeners.add(readListener);
}
- if(listener instanceof javax.batch.api.chunk.listener.ItemReadListener) {
- ItemReadListener itemListener = new ItemReadListenerAdapter<>((javax.batch.api.chunk.listener.ItemReadListener) listener);
+ if(listener instanceof jakarta.batch.api.chunk.listener.ItemReadListener) {
+ ItemReadListener itemListener = new ItemReadListenerAdapter<>((jakarta.batch.api.chunk.listener.ItemReadListener) listener);
readListeners.add(itemListener);
}
if (listener instanceof ItemWriteListener) {
ItemWriteListener writeListener = (ItemWriteListener) listener;
writeListeners.add(writeListener);
}
- if(listener instanceof javax.batch.api.chunk.listener.ItemWriteListener) {
- ItemWriteListener itemListener = new ItemWriteListenerAdapter<>((javax.batch.api.chunk.listener.ItemWriteListener) listener);
+ if(listener instanceof jakarta.batch.api.chunk.listener.ItemWriteListener) {
+ ItemWriteListener itemListener = new ItemWriteListenerAdapter<>((jakarta.batch.api.chunk.listener.ItemWriteListener) listener);
writeListeners.add(itemListener);
}
if (listener instanceof ItemProcessListener) {
ItemProcessListener processListener = (ItemProcessListener) listener;
processListeners.add(processListener);
}
- if(listener instanceof javax.batch.api.chunk.listener.ItemProcessListener) {
- ItemProcessListener itemListener = new ItemProcessListenerAdapter<>((javax.batch.api.chunk.listener.ItemProcessListener) listener);
+ if(listener instanceof jakarta.batch.api.chunk.listener.ItemProcessListener) {
+ ItemProcessListener itemListener = new ItemProcessListenerAdapter<>((jakarta.batch.api.chunk.listener.ItemProcessListener) listener);
processListeners.add(itemListener);
}
if(listener instanceof RetryReadListener) {
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/ChunkListenerAdapter.java b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/ChunkListenerAdapter.java
index 982da3237..5554c524f 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/ChunkListenerAdapter.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/ChunkListenerAdapter.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013-2014 the original author or authors.
+ * Copyright 2013-2021 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.
@@ -15,7 +15,7 @@
*/
package org.springframework.batch.core.jsr;
-import javax.batch.operations.BatchRuntimeException;
+import jakarta.batch.operations.BatchRuntimeException;
import org.springframework.batch.core.ChunkListener;
import org.springframework.batch.core.scope.context.ChunkContext;
@@ -23,20 +23,21 @@ import org.springframework.batch.core.step.tasklet.UncheckedTransactionException
import org.springframework.util.Assert;
/**
- * Wrapper class to adapt the {@link javax.batch.api.chunk.listener.ChunkListener} to
+ * Wrapper class to adapt the {@link jakarta.batch.api.chunk.listener.ChunkListener} to
* a {@link ChunkListener}.
*
* @author Michael Minella
+ * @author Mahmoud Ben Hassine
* @since 3.0
*/
public class ChunkListenerAdapter implements ChunkListener {
- private final javax.batch.api.chunk.listener.ChunkListener delegate;
+ private final jakarta.batch.api.chunk.listener.ChunkListener delegate;
/**
* @param delegate to be called within the step chunk lifecycle
*/
- public ChunkListenerAdapter(javax.batch.api.chunk.listener.ChunkListener delegate) {
+ public ChunkListenerAdapter(jakarta.batch.api.chunk.listener.ChunkListener delegate) {
Assert.notNull(delegate, "A ChunkListener is required");
this.delegate = delegate;
}
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/ItemProcessListenerAdapter.java b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/ItemProcessListenerAdapter.java
index ae246144d..f221cc0e9 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/ItemProcessListenerAdapter.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/ItemProcessListenerAdapter.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013-2018 the original author or authors.
+ * Copyright 2013-2021 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.
@@ -15,14 +15,14 @@
*/
package org.springframework.batch.core.jsr;
-import javax.batch.operations.BatchRuntimeException;
+import jakarta.batch.operations.BatchRuntimeException;
import org.springframework.batch.core.ItemProcessListener;
import org.springframework.lang.Nullable;
import org.springframework.util.Assert;
/**
- * Wrapper class for {@link javax.batch.api.chunk.listener.ItemProcessListener}
+ * Wrapper class for {@link jakarta.batch.api.chunk.listener.ItemProcessListener}
*
* @author Michael Minella
* @author Mahmoud Ben Hassine
@@ -33,12 +33,12 @@ import org.springframework.util.Assert;
*/
public class ItemProcessListenerAdapter implements ItemProcessListener {
- private javax.batch.api.chunk.listener.ItemProcessListener delegate;
+ private jakarta.batch.api.chunk.listener.ItemProcessListener delegate;
/**
* @param delegate to be called within the batch lifecycle
*/
- public ItemProcessListenerAdapter(javax.batch.api.chunk.listener.ItemProcessListener delegate) {
+ public ItemProcessListenerAdapter(jakarta.batch.api.chunk.listener.ItemProcessListener delegate) {
Assert.notNull(delegate, "An ItemProcessListener is required");
this.delegate = delegate;
}
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/ItemReadListenerAdapter.java b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/ItemReadListenerAdapter.java
index e1a4df3d1..a37155bed 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/ItemReadListenerAdapter.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/ItemReadListenerAdapter.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2018 the original author or authors.
+ * Copyright 2018-2021 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.
@@ -15,14 +15,14 @@
*/
package org.springframework.batch.core.jsr;
-import javax.batch.operations.BatchRuntimeException;
+import jakarta.batch.operations.BatchRuntimeException;
import org.springframework.batch.core.ItemReadListener;
import org.springframework.batch.item.ItemReader;
import org.springframework.util.Assert;
/**
- * Wrapper class to adapt the {@link javax.batch.api.chunk.listener.ItemReadListener} to
+ * Wrapper class to adapt the {@link jakarta.batch.api.chunk.listener.ItemReadListener} to
* a {@link ItemReadListener}.
*
* @author Michael Minella
@@ -33,9 +33,9 @@ import org.springframework.util.Assert;
*/
public class ItemReadListenerAdapter implements ItemReadListener {
- private javax.batch.api.chunk.listener.ItemReadListener delegate;
+ private jakarta.batch.api.chunk.listener.ItemReadListener delegate;
- public ItemReadListenerAdapter(javax.batch.api.chunk.listener.ItemReadListener delegate) {
+ public ItemReadListenerAdapter(jakarta.batch.api.chunk.listener.ItemReadListener delegate) {
Assert.notNull(delegate, "An ItemReadListener is required");
this.delegate = delegate;
}
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/ItemWriteListenerAdapter.java b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/ItemWriteListenerAdapter.java
index c4a4b9662..37a6108d7 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/ItemWriteListenerAdapter.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/ItemWriteListenerAdapter.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013 the original author or authors.
+ * Copyright 2013-2021 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.
@@ -17,26 +17,27 @@ package org.springframework.batch.core.jsr;
import java.util.List;
-import javax.batch.operations.BatchRuntimeException;
+import jakarta.batch.operations.BatchRuntimeException;
import org.springframework.batch.core.ItemWriteListener;
import org.springframework.batch.item.ItemWriter;
import org.springframework.util.Assert;
/**
- * Wrapper class to adapt the {@link javax.batch.api.chunk.listener.ItemWriteListener} to
+ * Wrapper class to adapt the {@link jakarta.batch.api.chunk.listener.ItemWriteListener} to
* a {@link ItemWriteListener}.
*
* @author Michael Minella
+ * @author Mahmoud Ben Hassine
*
* @param type to be written by the associated {@link ItemWriter}
* @since 3.0
*/
public class ItemWriteListenerAdapter implements ItemWriteListener {
- private javax.batch.api.chunk.listener.ItemWriteListener delegate;
+ private jakarta.batch.api.chunk.listener.ItemWriteListener delegate;
- public ItemWriteListenerAdapter(javax.batch.api.chunk.listener.ItemWriteListener delegate) {
+ public ItemWriteListenerAdapter(jakarta.batch.api.chunk.listener.ItemWriteListener delegate) {
Assert.notNull(delegate, "An ItemWriteListener is required");
this.delegate = delegate;
}
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/JobListenerAdapter.java b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/JobListenerAdapter.java
index e8d16ffa3..a276e8613 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/JobListenerAdapter.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/JobListenerAdapter.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013 the original author or authors.
+ * Copyright 2013-2021 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.
@@ -15,8 +15,8 @@
*/
package org.springframework.batch.core.jsr;
-import javax.batch.api.listener.JobListener;
-import javax.batch.operations.BatchRuntimeException;
+import jakarta.batch.api.listener.JobListener;
+import jakarta.batch.operations.BatchRuntimeException;
import org.springframework.batch.core.JobExecution;
import org.springframework.batch.core.JobExecutionListener;
@@ -27,6 +27,7 @@ import org.springframework.util.Assert;
* a {@link JobExecutionListener}.
*
* @author Michael Minella
+ * @author Mahmoud Ben Hassine
* @since 3.0
*/
public class JobListenerAdapter implements JobExecutionListener {
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/JsrJobContext.java b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/JsrJobContext.java
index 86db6c7b7..880e7211f 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/JsrJobContext.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/JsrJobContext.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013-2018 the original author or authors.
+ * Copyright 2013-2021 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.
@@ -18,7 +18,7 @@ package org.springframework.batch.core.jsr;
import java.util.Properties;
import java.util.concurrent.atomic.AtomicBoolean;
-import javax.batch.runtime.BatchStatus;
+import jakarta.batch.runtime.BatchStatus;
import org.springframework.batch.core.ExitStatus;
import org.springframework.batch.core.JobExecution;
@@ -26,7 +26,7 @@ import org.springframework.lang.Nullable;
import org.springframework.util.Assert;
/**
- * Wrapper class to provide the {@link javax.batch.runtime.context.JobContext} functionality
+ * Wrapper class to provide the {@link jakarta.batch.runtime.context.JobContext} functionality
* as specified in JSR-352. Wrapper delegates to the underlying {@link JobExecution} to
* obtain the related contextual information.
*
@@ -35,7 +35,7 @@ import org.springframework.util.Assert;
* @author Mahmoud Ben Hassine
* @since 3.0
*/
-public class JsrJobContext implements javax.batch.runtime.context.JobContext {
+public class JsrJobContext implements jakarta.batch.runtime.context.JobContext {
private Object transientUserData;
private Properties properties;
private JobExecution jobExecution;
@@ -51,7 +51,7 @@ public class JsrJobContext implements javax.batch.runtime.context.JobContext {
}
/* (non-Javadoc)
- * @see javax.batch.runtime.context.JobContext#getJobName()
+ * @see jakarta.batch.runtime.context.JobContext#getJobName()
*/
@Override
public String getJobName() {
@@ -59,7 +59,7 @@ public class JsrJobContext implements javax.batch.runtime.context.JobContext {
}
/* (non-Javadoc)
- * @see javax.batch.runtime.context.JobContext#getTransientUserData()
+ * @see jakarta.batch.runtime.context.JobContext#getTransientUserData()
*/
@Override
public Object getTransientUserData() {
@@ -67,7 +67,7 @@ public class JsrJobContext implements javax.batch.runtime.context.JobContext {
}
/* (non-Javadoc)
- * @see javax.batch.runtime.context.JobContext#setTransientUserData(java.lang.Object)
+ * @see jakarta.batch.runtime.context.JobContext#setTransientUserData(java.lang.Object)
*/
@Override
public void setTransientUserData(Object data) {
@@ -75,7 +75,7 @@ public class JsrJobContext implements javax.batch.runtime.context.JobContext {
}
/* (non-Javadoc)
- * @see javax.batch.runtime.context.JobContext#getInstanceId()
+ * @see jakarta.batch.runtime.context.JobContext#getInstanceId()
*/
@Override
public long getInstanceId() {
@@ -83,7 +83,7 @@ public class JsrJobContext implements javax.batch.runtime.context.JobContext {
}
/* (non-Javadoc)
- * @see javax.batch.runtime.context.JobContext#getExecutionId()
+ * @see jakarta.batch.runtime.context.JobContext#getExecutionId()
*/
@Override
public long getExecutionId() {
@@ -91,7 +91,7 @@ public class JsrJobContext implements javax.batch.runtime.context.JobContext {
}
/* (non-Javadoc)
- * @see javax.batch.runtime.context.JobContext#getProperties()
+ * @see jakarta.batch.runtime.context.JobContext#getProperties()
*/
@Override
public Properties getProperties() {
@@ -99,7 +99,7 @@ public class JsrJobContext implements javax.batch.runtime.context.JobContext {
}
/* (non-Javadoc)
- * @see javax.batch.runtime.context.JobContext#getBatchStatus()
+ * @see jakarta.batch.runtime.context.JobContext#getBatchStatus()
*/
@Override
public BatchStatus getBatchStatus() {
@@ -107,7 +107,7 @@ public class JsrJobContext implements javax.batch.runtime.context.JobContext {
}
/* (non-Javadoc)
- * @see javax.batch.runtime.context.JobContext#getExitStatus()
+ * @see jakarta.batch.runtime.context.JobContext#getExitStatus()
*/
@Override
@Nullable
@@ -116,7 +116,7 @@ public class JsrJobContext implements javax.batch.runtime.context.JobContext {
}
/* (non-Javadoc)
- * @see javax.batch.runtime.context.JobContext#setExitStatus(java.lang.String)
+ * @see jakarta.batch.runtime.context.JobContext#setExitStatus(java.lang.String)
*/
@Override
public void setExitStatus(String status) {
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/JsrJobContextFactoryBean.java b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/JsrJobContextFactoryBean.java
index 50186355e..75b4c1111 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/JsrJobContextFactoryBean.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/JsrJobContextFactoryBean.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013 the original author or authors.
+ * Copyright 2013-2021 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.
@@ -17,8 +17,8 @@ package org.springframework.batch.core.jsr;
import java.util.Properties;
-import javax.batch.runtime.StepExecution;
-import javax.batch.runtime.context.JobContext;
+import jakarta.batch.runtime.StepExecution;
+import jakarta.batch.runtime.context.JobContext;
import org.springframework.batch.core.JobExecution;
import org.springframework.batch.core.jsr.configuration.support.BatchPropertyContext;
@@ -39,6 +39,7 @@ import org.springframework.util.Assert;
*
*
* @author Michael Minella
+ * @author Mahmoud Ben Hassine
* @since 3.0
*/
public class JsrJobContextFactoryBean implements FactoryBean {
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/JsrJobExecution.java b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/JsrJobExecution.java
index 3d5608554..ab199aba7 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/JsrJobExecution.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/JsrJobExecution.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013 the original author or authors.
+ * Copyright 2013-2021 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.
@@ -18,19 +18,20 @@ package org.springframework.batch.core.jsr;
import java.util.Date;
import java.util.Properties;
-import javax.batch.runtime.BatchStatus;
+import jakarta.batch.runtime.BatchStatus;
import org.springframework.batch.core.converter.JobParametersConverter;
import org.springframework.util.Assert;
/**
- * Wrapper class to adapt the {@link javax.batch.runtime.JobExecution} to
+ * Wrapper class to adapt the {@link jakarta.batch.runtime.JobExecution} to
* a {@link org.springframework.batch.core.JobExecution}.
*
* @author Michael Minella
+ * @author Mahmoud Ben Hassine
* @since 3.0
*/
-public class JsrJobExecution implements javax.batch.runtime.JobExecution {
+public class JsrJobExecution implements jakarta.batch.runtime.JobExecution {
private org.springframework.batch.core.JobExecution execution;
private JobParametersConverter parametersConverter;
@@ -47,7 +48,7 @@ public class JsrJobExecution implements javax.batch.runtime.JobExecution {
}
/* (non-Javadoc)
- * @see javax.batch.runtime.JobExecution#getExecutionId()
+ * @see jakarta.batch.runtime.JobExecution#getExecutionId()
*/
@Override
public long getExecutionId() {
@@ -55,7 +56,7 @@ public class JsrJobExecution implements javax.batch.runtime.JobExecution {
}
/* (non-Javadoc)
- * @see javax.batch.runtime.JobExecution#getJobName()
+ * @see jakarta.batch.runtime.JobExecution#getJobName()
*/
@Override
public String getJobName() {
@@ -63,7 +64,7 @@ public class JsrJobExecution implements javax.batch.runtime.JobExecution {
}
/* (non-Javadoc)
- * @see javax.batch.runtime.JobExecution#getBatchStatus()
+ * @see jakarta.batch.runtime.JobExecution#getBatchStatus()
*/
@Override
public BatchStatus getBatchStatus() {
@@ -71,7 +72,7 @@ public class JsrJobExecution implements javax.batch.runtime.JobExecution {
}
/* (non-Javadoc)
- * @see javax.batch.runtime.JobExecution#getStartTime()
+ * @see jakarta.batch.runtime.JobExecution#getStartTime()
*/
@Override
public Date getStartTime() {
@@ -79,7 +80,7 @@ public class JsrJobExecution implements javax.batch.runtime.JobExecution {
}
/* (non-Javadoc)
- * @see javax.batch.runtime.JobExecution#getEndTime()
+ * @see jakarta.batch.runtime.JobExecution#getEndTime()
*/
@Override
public Date getEndTime() {
@@ -87,7 +88,7 @@ public class JsrJobExecution implements javax.batch.runtime.JobExecution {
}
/* (non-Javadoc)
- * @see javax.batch.runtime.JobExecution#getExitStatus()
+ * @see jakarta.batch.runtime.JobExecution#getExitStatus()
*/
@Override
public String getExitStatus() {
@@ -95,7 +96,7 @@ public class JsrJobExecution implements javax.batch.runtime.JobExecution {
}
/* (non-Javadoc)
- * @see javax.batch.runtime.JobExecution#getCreateTime()
+ * @see jakarta.batch.runtime.JobExecution#getCreateTime()
*/
@Override
public Date getCreateTime() {
@@ -103,7 +104,7 @@ public class JsrJobExecution implements javax.batch.runtime.JobExecution {
}
/* (non-Javadoc)
- * @see javax.batch.runtime.JobExecution#getLastUpdatedTime()
+ * @see jakarta.batch.runtime.JobExecution#getLastUpdatedTime()
*/
@Override
public Date getLastUpdatedTime() {
@@ -111,7 +112,7 @@ public class JsrJobExecution implements javax.batch.runtime.JobExecution {
}
/* (non-Javadoc)
- * @see javax.batch.runtime.JobExecution#getJobParameters()
+ * @see jakarta.batch.runtime.JobExecution#getJobParameters()
*/
@Override
public Properties getJobParameters() {
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/JsrJobListenerMetaData.java b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/JsrJobListenerMetaData.java
index d1fa03ae6..5cb9d5d62 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/JsrJobListenerMetaData.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/JsrJobListenerMetaData.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013 the original author or authors.
+ * Copyright 2013-2021 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.
@@ -19,7 +19,7 @@ import java.lang.annotation.Annotation;
import java.util.HashMap;
import java.util.Map;
-import javax.batch.api.listener.JobListener;
+import jakarta.batch.api.listener.JobListener;
import org.springframework.batch.core.listener.ListenerMetaData;
@@ -28,6 +28,7 @@ import org.springframework.batch.core.listener.ListenerMetaData;
* of methods, their interfaces, annotation, and expected arguments.
*
* @author Michael Minella
+ * @author Mahmoud Ben Hassine
* @since 3.0
*/
public enum JsrJobListenerMetaData implements ListenerMetaData {
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/JsrStepContext.java b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/JsrStepContext.java
index 213ac512c..10aeda150 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/JsrStepContext.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/JsrStepContext.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013 the original author or authors.
+ * Copyright 2013-2021 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.
@@ -20,8 +20,8 @@ import java.util.List;
import java.util.Properties;
import java.util.concurrent.atomic.AtomicBoolean;
-import javax.batch.runtime.BatchStatus;
-import javax.batch.runtime.Metric;
+import jakarta.batch.runtime.BatchStatus;
+import jakarta.batch.runtime.Metric;
import org.springframework.batch.core.ExitStatus;
import org.springframework.batch.core.StepExecution;
@@ -30,15 +30,16 @@ import org.springframework.util.Assert;
import org.springframework.util.ClassUtils;
/**
- * Wrapper class to provide the {@link javax.batch.runtime.context.StepContext} functionality
+ * Wrapper class to provide the {@link jakarta.batch.runtime.context.StepContext} functionality
* as specified in JSR-352. Wrapper delegates to the underlying {@link StepExecution} to
* obtain the related contextual information.
*
* @author Michael Minella
* @author Chris Schaefer
+ * @author Mahmoud Ben Hassine
* @since 3.0
*/
-public class JsrStepContext implements javax.batch.runtime.context.StepContext {
+public class JsrStepContext implements jakarta.batch.runtime.context.StepContext {
private final static String PERSISTENT_USER_DATA_KEY = "batch_jsr_persistentUserData";
private StepExecution stepExecution;
private Object transientUserData;
@@ -54,7 +55,7 @@ public class JsrStepContext implements javax.batch.runtime.context.StepContext {
}
/* (non-Javadoc)
- * @see javax.batch.runtime.context.StepContext#getStepName()
+ * @see jakarta.batch.runtime.context.StepContext#getStepName()
*/
@Override
public String getStepName() {
@@ -62,7 +63,7 @@ public class JsrStepContext implements javax.batch.runtime.context.StepContext {
}
/* (non-Javadoc)
- * @see javax.batch.runtime.context.StepContext#getTransientUserData()
+ * @see jakarta.batch.runtime.context.StepContext#getTransientUserData()
*/
@Override
public Object getTransientUserData() {
@@ -70,7 +71,7 @@ public class JsrStepContext implements javax.batch.runtime.context.StepContext {
}
/* (non-Javadoc)
- * @see javax.batch.runtime.context.StepContext#setTransientUserData(java.lang.Object)
+ * @see jakarta.batch.runtime.context.StepContext#setTransientUserData(java.lang.Object)
*/
@Override
public void setTransientUserData(Object data) {
@@ -78,7 +79,7 @@ public class JsrStepContext implements javax.batch.runtime.context.StepContext {
}
/* (non-Javadoc)
- * @see javax.batch.runtime.context.StepContext#getStepExecutionId()
+ * @see jakarta.batch.runtime.context.StepContext#getStepExecutionId()
*/
@Override
public long getStepExecutionId() {
@@ -86,7 +87,7 @@ public class JsrStepContext implements javax.batch.runtime.context.StepContext {
}
/* (non-Javadoc)
- * @see javax.batch.runtime.context.StepContext#getProperties()
+ * @see jakarta.batch.runtime.context.StepContext#getProperties()
*/
@Override
public Properties getProperties() {
@@ -94,7 +95,7 @@ public class JsrStepContext implements javax.batch.runtime.context.StepContext {
}
/* (non-Javadoc)
- * @see javax.batch.runtime.context.StepContext#getPersistentUserData()
+ * @see jakarta.batch.runtime.context.StepContext#getPersistentUserData()
*/
@Override
public Serializable getPersistentUserData() {
@@ -102,7 +103,7 @@ public class JsrStepContext implements javax.batch.runtime.context.StepContext {
}
/* (non-Javadoc)
- * @see javax.batch.runtime.context.StepContext#setPersistentUserData(java.io.Serializable)
+ * @see jakarta.batch.runtime.context.StepContext#setPersistentUserData(java.io.Serializable)
*/
@Override
public void setPersistentUserData(Serializable data) {
@@ -110,7 +111,7 @@ public class JsrStepContext implements javax.batch.runtime.context.StepContext {
}
/* (non-Javadoc)
- * @see javax.batch.runtime.context.StepContext#getBatchStatus()
+ * @see jakarta.batch.runtime.context.StepContext#getBatchStatus()
*/
@Override
public BatchStatus getBatchStatus() {
@@ -118,7 +119,7 @@ public class JsrStepContext implements javax.batch.runtime.context.StepContext {
}
/* (non-Javadoc)
- * @see javax.batch.runtime.context.StepContext#getExitStatus()
+ * @see jakarta.batch.runtime.context.StepContext#getExitStatus()
*/
@Override
public String getExitStatus() {
@@ -126,7 +127,7 @@ public class JsrStepContext implements javax.batch.runtime.context.StepContext {
}
/* (non-Javadoc)
- * @see javax.batch.runtime.context.StepContext#setExitStatus(java.lang.String)
+ * @see jakarta.batch.runtime.context.StepContext#setExitStatus(java.lang.String)
*/
@Override
public void setExitStatus(String status) {
@@ -142,7 +143,7 @@ public class JsrStepContext implements javax.batch.runtime.context.StepContext {
* instead of {@link Exception}, it will be wrapped in an {@link Exception} and
* then returned.
*
- * @see javax.batch.runtime.context.StepContext#getException()
+ * @see jakarta.batch.runtime.context.StepContext#getException()
*/
@Override
public Exception getException() {
@@ -161,20 +162,20 @@ public class JsrStepContext implements javax.batch.runtime.context.StepContext {
}
/* (non-Javadoc)
- * @see javax.batch.runtime.context.StepContext#getMetrics()
+ * @see jakarta.batch.runtime.context.StepContext#getMetrics()
*/
@Override
public Metric[] getMetrics() {
Metric[] metrics = new Metric[8];
- metrics[0] = new SimpleMetric(javax.batch.runtime.Metric.MetricType.COMMIT_COUNT, stepExecution.getCommitCount());
- metrics[1] = new SimpleMetric(javax.batch.runtime.Metric.MetricType.FILTER_COUNT, stepExecution.getFilterCount());
- metrics[2] = new SimpleMetric(javax.batch.runtime.Metric.MetricType.PROCESS_SKIP_COUNT, stepExecution.getProcessSkipCount());
- metrics[3] = new SimpleMetric(javax.batch.runtime.Metric.MetricType.READ_COUNT, stepExecution.getReadCount());
- metrics[4] = new SimpleMetric(javax.batch.runtime.Metric.MetricType.READ_SKIP_COUNT, stepExecution.getReadSkipCount());
- metrics[5] = new SimpleMetric(javax.batch.runtime.Metric.MetricType.ROLLBACK_COUNT, stepExecution.getRollbackCount());
- metrics[6] = new SimpleMetric(javax.batch.runtime.Metric.MetricType.WRITE_COUNT, stepExecution.getWriteCount());
- metrics[7] = new SimpleMetric(javax.batch.runtime.Metric.MetricType.WRITE_SKIP_COUNT, stepExecution.getWriteSkipCount());
+ metrics[0] = new SimpleMetric(jakarta.batch.runtime.Metric.MetricType.COMMIT_COUNT, stepExecution.getCommitCount());
+ metrics[1] = new SimpleMetric(jakarta.batch.runtime.Metric.MetricType.FILTER_COUNT, stepExecution.getFilterCount());
+ metrics[2] = new SimpleMetric(jakarta.batch.runtime.Metric.MetricType.PROCESS_SKIP_COUNT, stepExecution.getProcessSkipCount());
+ metrics[3] = new SimpleMetric(jakarta.batch.runtime.Metric.MetricType.READ_COUNT, stepExecution.getReadCount());
+ metrics[4] = new SimpleMetric(jakarta.batch.runtime.Metric.MetricType.READ_SKIP_COUNT, stepExecution.getReadSkipCount());
+ metrics[5] = new SimpleMetric(jakarta.batch.runtime.Metric.MetricType.ROLLBACK_COUNT, stepExecution.getRollbackCount());
+ metrics[6] = new SimpleMetric(jakarta.batch.runtime.Metric.MetricType.WRITE_COUNT, stepExecution.getWriteCount());
+ metrics[7] = new SimpleMetric(jakarta.batch.runtime.Metric.MetricType.WRITE_SKIP_COUNT, stepExecution.getWriteSkipCount());
return metrics;
}
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/JsrStepContextFactoryBean.java b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/JsrStepContextFactoryBean.java
index 975924670..20eac2e83 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/JsrStepContextFactoryBean.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/JsrStepContextFactoryBean.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013 the original author or authors.
+ * Copyright 2013-2021 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.
@@ -17,7 +17,7 @@ package org.springframework.batch.core.jsr;
import java.util.Properties;
-import javax.batch.runtime.context.StepContext;
+import jakarta.batch.runtime.context.StepContext;
import org.springframework.batch.core.jsr.configuration.support.BatchPropertyContext;
import org.springframework.batch.core.scope.context.StepSynchronizationManager;
@@ -28,18 +28,19 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.Assert;
/**
- * {@link FactoryBean} implementation used to create {@link javax.batch.runtime.context.StepContext}
+ * {@link FactoryBean} implementation used to create {@link jakarta.batch.runtime.context.StepContext}
* instances within the step scope.
*
* @author Michael Minella
* @author Chris Schaefer
+ * @author Mahmoud Ben Hassine
* @since 3.0
*/
public class JsrStepContextFactoryBean implements FactoryBean, InitializingBean {
@Autowired
private BatchPropertyContext batchPropertyContext;
- private static final ThreadLocal contextHolder = new ThreadLocal<>();
+ private static final ThreadLocal contextHolder = new ThreadLocal<>();
protected void setBatchPropertyContext(BatchPropertyContext batchPropertyContext) {
this.batchPropertyContext = batchPropertyContext;
@@ -53,7 +54,7 @@ public class JsrStepContextFactoryBean implements FactoryBean, Init
return getCurrent();
}
- private javax.batch.runtime.context.StepContext getCurrent() {
+ private jakarta.batch.runtime.context.StepContext getCurrent() {
org.springframework.batch.core.StepExecution curStepExecution = null;
if(StepSynchronizationManager.getContext() != null) {
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/JsrStepExecution.java b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/JsrStepExecution.java
index 8863a947a..2ce6af242 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/JsrStepExecution.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/JsrStepExecution.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013 the original author or authors.
+ * Copyright 2013-2021 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.
@@ -18,8 +18,8 @@ package org.springframework.batch.core.jsr;
import java.io.Serializable;
import java.util.Date;
-import javax.batch.runtime.BatchStatus;
-import javax.batch.runtime.Metric;
+import jakarta.batch.runtime.BatchStatus;
+import jakarta.batch.runtime.Metric;
import org.springframework.batch.core.ExitStatus;
import org.springframework.batch.item.util.ExecutionContextUserSupport;
@@ -32,9 +32,10 @@ import org.springframework.util.ClassUtils;
* data.
*
* @author Michael Minella
+ * @author Mahmoud Ben Hassine
* @since 3.0
*/
-public class JsrStepExecution implements javax.batch.runtime.StepExecution{
+public class JsrStepExecution implements jakarta.batch.runtime.StepExecution{
private final static String PERSISTENT_USER_DATA_KEY = "batch_jsr_persistentUserData";
private final org.springframework.batch.core.StepExecution stepExecution;
@@ -52,7 +53,7 @@ public class JsrStepExecution implements javax.batch.runtime.StepExecution{
}
/* (non-Javadoc)
- * @see javax.batch.runtime.JsrStepExecution#getStepExecutionId()
+ * @see jakarta.batch.runtime.JsrStepExecution#getStepExecutionId()
*/
@Override
public long getStepExecutionId() {
@@ -60,7 +61,7 @@ public class JsrStepExecution implements javax.batch.runtime.StepExecution{
}
/* (non-Javadoc)
- * @see javax.batch.runtime.JsrStepExecution#getStepName()
+ * @see jakarta.batch.runtime.JsrStepExecution#getStepName()
*/
@Override
public String getStepName() {
@@ -68,7 +69,7 @@ public class JsrStepExecution implements javax.batch.runtime.StepExecution{
}
/* (non-Javadoc)
- * @see javax.batch.runtime.JsrStepExecution#getBatchStatus()
+ * @see jakarta.batch.runtime.JsrStepExecution#getBatchStatus()
*/
@Override
public BatchStatus getBatchStatus() {
@@ -76,7 +77,7 @@ public class JsrStepExecution implements javax.batch.runtime.StepExecution{
}
/* (non-Javadoc)
- * @see javax.batch.runtime.JsrStepExecution#getStartTime()
+ * @see jakarta.batch.runtime.JsrStepExecution#getStartTime()
*/
@Override
public Date getStartTime() {
@@ -84,7 +85,7 @@ public class JsrStepExecution implements javax.batch.runtime.StepExecution{
}
/* (non-Javadoc)
- * @see javax.batch.runtime.JsrStepExecution#getEndTime()
+ * @see jakarta.batch.runtime.JsrStepExecution#getEndTime()
*/
@Override
public Date getEndTime() {
@@ -92,7 +93,7 @@ public class JsrStepExecution implements javax.batch.runtime.StepExecution{
}
/* (non-Javadoc)
- * @see javax.batch.runtime.JsrStepExecution#getExitStatus()
+ * @see jakarta.batch.runtime.JsrStepExecution#getExitStatus()
*/
@Override
public String getExitStatus() {
@@ -106,7 +107,7 @@ public class JsrStepExecution implements javax.batch.runtime.StepExecution{
}
/* (non-Javadoc)
- * @see javax.batch.runtime.JsrStepExecution#getPersistentUserData()
+ * @see jakarta.batch.runtime.JsrStepExecution#getPersistentUserData()
*/
@Override
public Serializable getPersistentUserData() {
@@ -114,20 +115,20 @@ public class JsrStepExecution implements javax.batch.runtime.StepExecution{
}
/* (non-Javadoc)
- * @see javax.batch.runtime.JsrStepExecution#getMetrics()
+ * @see jakarta.batch.runtime.JsrStepExecution#getMetrics()
*/
@Override
public Metric[] getMetrics() {
Metric[] metrics = new Metric[8];
- metrics[0] = new SimpleMetric(javax.batch.runtime.Metric.MetricType.COMMIT_COUNT, stepExecution.getCommitCount());
- metrics[1] = new SimpleMetric(javax.batch.runtime.Metric.MetricType.FILTER_COUNT, stepExecution.getFilterCount());
- metrics[2] = new SimpleMetric(javax.batch.runtime.Metric.MetricType.PROCESS_SKIP_COUNT, stepExecution.getProcessSkipCount());
- metrics[3] = new SimpleMetric(javax.batch.runtime.Metric.MetricType.READ_COUNT, stepExecution.getReadCount());
- metrics[4] = new SimpleMetric(javax.batch.runtime.Metric.MetricType.READ_SKIP_COUNT, stepExecution.getReadSkipCount());
- metrics[5] = new SimpleMetric(javax.batch.runtime.Metric.MetricType.ROLLBACK_COUNT, stepExecution.getRollbackCount());
- metrics[6] = new SimpleMetric(javax.batch.runtime.Metric.MetricType.WRITE_COUNT, stepExecution.getWriteCount());
- metrics[7] = new SimpleMetric(javax.batch.runtime.Metric.MetricType.WRITE_SKIP_COUNT, stepExecution.getWriteSkipCount());
+ metrics[0] = new SimpleMetric(jakarta.batch.runtime.Metric.MetricType.COMMIT_COUNT, stepExecution.getCommitCount());
+ metrics[1] = new SimpleMetric(jakarta.batch.runtime.Metric.MetricType.FILTER_COUNT, stepExecution.getFilterCount());
+ metrics[2] = new SimpleMetric(jakarta.batch.runtime.Metric.MetricType.PROCESS_SKIP_COUNT, stepExecution.getProcessSkipCount());
+ metrics[3] = new SimpleMetric(jakarta.batch.runtime.Metric.MetricType.READ_COUNT, stepExecution.getReadCount());
+ metrics[4] = new SimpleMetric(jakarta.batch.runtime.Metric.MetricType.READ_SKIP_COUNT, stepExecution.getReadSkipCount());
+ metrics[5] = new SimpleMetric(jakarta.batch.runtime.Metric.MetricType.ROLLBACK_COUNT, stepExecution.getRollbackCount());
+ metrics[6] = new SimpleMetric(jakarta.batch.runtime.Metric.MetricType.WRITE_COUNT, stepExecution.getWriteCount());
+ metrics[7] = new SimpleMetric(jakarta.batch.runtime.Metric.MetricType.WRITE_SKIP_COUNT, stepExecution.getWriteSkipCount());
return metrics;
}
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/JsrStepListenerMetaData.java b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/JsrStepListenerMetaData.java
index 21a6efafc..b9578815f 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/JsrStepListenerMetaData.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/JsrStepListenerMetaData.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013 the original author or authors.
+ * Copyright 2013-2021 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.
@@ -20,17 +20,17 @@ import java.util.HashMap;
import java.util.List;
import java.util.Map;
-import javax.batch.api.chunk.listener.ChunkListener;
-import javax.batch.api.chunk.listener.ItemProcessListener;
-import javax.batch.api.chunk.listener.ItemReadListener;
-import javax.batch.api.chunk.listener.ItemWriteListener;
-import javax.batch.api.chunk.listener.RetryProcessListener;
-import javax.batch.api.chunk.listener.RetryReadListener;
-import javax.batch.api.chunk.listener.RetryWriteListener;
-import javax.batch.api.chunk.listener.SkipProcessListener;
-import javax.batch.api.chunk.listener.SkipReadListener;
-import javax.batch.api.chunk.listener.SkipWriteListener;
-import javax.batch.api.listener.StepListener;
+import jakarta.batch.api.chunk.listener.ChunkListener;
+import jakarta.batch.api.chunk.listener.ItemProcessListener;
+import jakarta.batch.api.chunk.listener.ItemReadListener;
+import jakarta.batch.api.chunk.listener.ItemWriteListener;
+import jakarta.batch.api.chunk.listener.RetryProcessListener;
+import jakarta.batch.api.chunk.listener.RetryReadListener;
+import jakarta.batch.api.chunk.listener.RetryWriteListener;
+import jakarta.batch.api.chunk.listener.SkipProcessListener;
+import jakarta.batch.api.chunk.listener.SkipReadListener;
+import jakarta.batch.api.chunk.listener.SkipWriteListener;
+import jakarta.batch.api.listener.StepListener;
import org.springframework.batch.core.listener.ListenerMetaData;
import org.springframework.batch.core.listener.StepListenerFactoryBean;
@@ -41,6 +41,7 @@ import org.springframework.batch.core.listener.StepListenerFactoryBean;
*
* @author Michael Minella
* @author Chris Schaefer
+ * @author Mahmoud Ben Hassine
* @since 3.0
* @see StepListenerFactoryBean
*/
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/RetryProcessListenerAdapter.java b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/RetryProcessListenerAdapter.java
index c2c076d65..b41925c00 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/RetryProcessListenerAdapter.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/RetryProcessListenerAdapter.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013 the original author or authors.
+ * Copyright 2013-2021 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.
@@ -15,8 +15,8 @@
*/
package org.springframework.batch.core.jsr;
-import javax.batch.api.chunk.listener.RetryProcessListener;
-import javax.batch.operations.BatchRuntimeException;
+import jakarta.batch.api.chunk.listener.RetryProcessListener;
+import jakarta.batch.operations.BatchRuntimeException;
/**
*
@@ -24,6 +24,7 @@ import javax.batch.operations.BatchRuntimeException;
*
*
* @author Chris Schaefer
+ * @author Mahmoud Ben Hassine
* @since 3.0
*/
public class RetryProcessListenerAdapter implements RetryListener, RetryProcessListener {
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/RetryReadListenerAdapter.java b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/RetryReadListenerAdapter.java
index c3392287b..8054855d8 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/RetryReadListenerAdapter.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/RetryReadListenerAdapter.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013 the original author or authors.
+ * Copyright 2013-2021 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.
@@ -15,8 +15,8 @@
*/
package org.springframework.batch.core.jsr;
-import javax.batch.api.chunk.listener.RetryReadListener;
-import javax.batch.operations.BatchRuntimeException;
+import jakarta.batch.api.chunk.listener.RetryReadListener;
+import jakarta.batch.operations.BatchRuntimeException;
/**
*
@@ -24,6 +24,7 @@ import javax.batch.operations.BatchRuntimeException;
*
*
* @author Chris Schaefer
+ * @author Mahmoud Ben Hassine
* @since 3.0
*/
public class RetryReadListenerAdapter implements RetryListener, RetryReadListener {
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/RetryWriteListenerAdapter.java b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/RetryWriteListenerAdapter.java
index cfd7c1a07..dc434117a 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/RetryWriteListenerAdapter.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/RetryWriteListenerAdapter.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013 the original author or authors.
+ * Copyright 2013-2021 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.
@@ -16,8 +16,8 @@
package org.springframework.batch.core.jsr;
import java.util.List;
-import javax.batch.api.chunk.listener.RetryWriteListener;
-import javax.batch.operations.BatchRuntimeException;
+import jakarta.batch.api.chunk.listener.RetryWriteListener;
+import jakarta.batch.operations.BatchRuntimeException;
/**
*
@@ -25,6 +25,7 @@ import javax.batch.operations.BatchRuntimeException;
*
*
* @author Chris Schaefer
+ * @author Mahmoud Ben Hassine
* @since 3.0
*/
public class RetryWriteListenerAdapter implements RetryListener, RetryWriteListener {
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/SimpleMetric.java b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/SimpleMetric.java
index 955245f50..bbb005e34 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/SimpleMetric.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/SimpleMetric.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013 the original author or authors.
+ * Copyright 2013-2021 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.
@@ -15,7 +15,7 @@
*/
package org.springframework.batch.core.jsr;
-import javax.batch.runtime.Metric;
+import jakarta.batch.runtime.Metric;
import org.springframework.util.Assert;
@@ -23,6 +23,7 @@ import org.springframework.util.Assert;
* Simple implementation of the {@link Metric} interface as required by JSR-352.
*
* @author Michael Minella
+ * @author Mahmoud Ben Hassine
* @since 3.0
*/
public class SimpleMetric implements Metric {
@@ -45,7 +46,7 @@ public class SimpleMetric implements Metric {
}
/* (non-Javadoc)
- * @see javax.batch.runtime.Metric#getType()
+ * @see jakarta.batch.runtime.Metric#getType()
*/
@Override
public MetricType getType() {
@@ -53,7 +54,7 @@ public class SimpleMetric implements Metric {
}
/* (non-Javadoc)
- * @see javax.batch.runtime.Metric#getValue()
+ * @see jakarta.batch.runtime.Metric#getValue()
*/
@Override
public long getValue() {
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/SkipListenerAdapter.java b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/SkipListenerAdapter.java
index c86b664ad..c947bd4d4 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/SkipListenerAdapter.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/SkipListenerAdapter.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013-2014 the original author or authors.
+ * Copyright 2013-2021 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.
@@ -15,10 +15,10 @@
*/
package org.springframework.batch.core.jsr;
-import javax.batch.api.chunk.listener.SkipProcessListener;
-import javax.batch.api.chunk.listener.SkipReadListener;
-import javax.batch.api.chunk.listener.SkipWriteListener;
-import javax.batch.operations.BatchRuntimeException;
+import jakarta.batch.api.chunk.listener.SkipProcessListener;
+import jakarta.batch.api.chunk.listener.SkipReadListener;
+import jakarta.batch.api.chunk.listener.SkipWriteListener;
+import jakarta.batch.operations.BatchRuntimeException;
import org.springframework.batch.core.SkipListener;
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/StepListenerAdapter.java b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/StepListenerAdapter.java
index f4294df41..51131d5a6 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/StepListenerAdapter.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/StepListenerAdapter.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013-2019 the original author or authors.
+ * Copyright 2013-2021 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.
@@ -15,8 +15,8 @@
*/
package org.springframework.batch.core.jsr;
-import javax.batch.api.listener.StepListener;
-import javax.batch.operations.BatchRuntimeException;
+import jakarta.batch.api.listener.StepListener;
+import jakarta.batch.operations.BatchRuntimeException;
import org.springframework.batch.core.ExitStatus;
import org.springframework.batch.core.StepExecution;
@@ -29,6 +29,7 @@ import org.springframework.util.Assert;
* a {@link StepExecutionListener}.
*
* @author Michael Minella
+ * @author Mahmoud Ben Hassine
* @since 3.0
*/
public class StepListenerAdapter implements StepExecutionListener {
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/configuration/support/JsrAutowiredAnnotationBeanPostProcessor.java b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/configuration/support/JsrAutowiredAnnotationBeanPostProcessor.java
index 2a888b6c2..ed4c04090 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/configuration/support/JsrAutowiredAnnotationBeanPostProcessor.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/configuration/support/JsrAutowiredAnnotationBeanPostProcessor.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013 the original author or authors.
+ * Copyright 2013-2021 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.
@@ -18,7 +18,7 @@ package org.springframework.batch.core.jsr.configuration.support;
import java.lang.annotation.Annotation;
import java.lang.reflect.AccessibleObject;
-import javax.batch.api.BatchProperty;
+import jakarta.batch.api.BatchProperty;
import org.springframework.beans.factory.annotation.InjectionMetadata;
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/configuration/support/SpringAutowiredAnnotationBeanPostProcessor.java b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/configuration/support/SpringAutowiredAnnotationBeanPostProcessor.java
index c059c407e..e3046648a 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/configuration/support/SpringAutowiredAnnotationBeanPostProcessor.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/configuration/support/SpringAutowiredAnnotationBeanPostProcessor.java
@@ -98,7 +98,7 @@ class SpringAutowiredAnnotationBeanPostProcessor implements SmartInstantiationAw
/**
* Create a new AutowiredAnnotationBeanPostProcessor
* for Spring's standard {@link org.springframework.beans.factory.annotation.Autowired} annotation.
- * Also supports JSR-330's {@link javax.inject.Inject} annotation, if available.
+ *
Also supports JSR-330's {@link jakarta.inject.Inject} annotation, if available.
*/
@SuppressWarnings("unchecked")
public SpringAutowiredAnnotationBeanPostProcessor() {
@@ -106,8 +106,8 @@ class SpringAutowiredAnnotationBeanPostProcessor implements SmartInstantiationAw
this.autowiredAnnotationTypes.add(Value.class);
ClassLoader cl = SpringAutowiredAnnotationBeanPostProcessor.class.getClassLoader();
try {
- this.autowiredAnnotationTypes.add((Class extends Annotation>) cl.loadClass("javax.inject.Inject"));
- logger.info("JSR-330 'javax.inject.Inject' annotation found and supported for autowiring");
+ this.autowiredAnnotationTypes.add((Class extends Annotation>) cl.loadClass("jakarta.inject.Inject"));
+ logger.info("JSR-330 'jakarta.inject.Inject' annotation found and supported for autowiring");
}
catch (ClassNotFoundException ex) {
// JSR-330 API not available - simply skip.
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/configuration/xml/DecisionStepFactoryBean.java b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/configuration/xml/DecisionStepFactoryBean.java
index 83150128f..3d8dad0f3 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/configuration/xml/DecisionStepFactoryBean.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/configuration/xml/DecisionStepFactoryBean.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013 the original author or authors.
+ * Copyright 2013-2021 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.
@@ -15,7 +15,7 @@
*/
package org.springframework.batch.core.jsr.configuration.xml;
-import javax.batch.api.Decider;
+import jakarta.batch.api.Decider;
import org.springframework.batch.core.Step;
import org.springframework.batch.core.jsr.step.DecisionStep;
@@ -28,6 +28,7 @@ import org.springframework.util.Assert;
* {@link FactoryBean} for creating a {@link DecisionStep}.
*
* @author Michael Minella
+ * @author Mahmoud Ben Hassine
* @since 3.0
*/
public class DecisionStepFactoryBean implements FactoryBean, InitializingBean {
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/configuration/xml/JobFactoryBean.java b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/configuration/xml/JobFactoryBean.java
index c6eb8287a..f92ac09e2 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/configuration/xml/JobFactoryBean.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/configuration/xml/JobFactoryBean.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013 the original author or authors.
+ * Copyright 2013-2021 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.
@@ -15,7 +15,7 @@
*/
package org.springframework.batch.core.jsr.configuration.xml;
-import javax.batch.api.listener.JobListener;
+import jakarta.batch.api.listener.JobListener;
import org.springframework.batch.core.JobExecutionListener;
import org.springframework.batch.core.JobParametersIncrementer;
@@ -37,6 +37,7 @@ import org.springframework.util.StringUtils;
* configurable on the <job/>.
*
* @author Michael Minella
+ * @author Mahmoud Ben Hassine
* @since 3.0
*/
public class JobFactoryBean implements SmartFactoryBean {
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/configuration/xml/JsrJobListenerFactoryBean.java b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/configuration/xml/JsrJobListenerFactoryBean.java
index 5a0b45551..2349d759f 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/configuration/xml/JsrJobListenerFactoryBean.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/configuration/xml/JsrJobListenerFactoryBean.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013 the original author or authors.
+ * Copyright 2013-2021 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.
@@ -19,7 +19,7 @@ import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
-import javax.batch.api.listener.JobListener;
+import jakarta.batch.api.listener.JobListener;
import org.springframework.batch.core.JobExecutionListener;
import org.springframework.batch.core.jsr.JsrJobListenerMetaData;
@@ -32,6 +32,7 @@ import org.springframework.beans.factory.FactoryBean;
* {@link JobExecutionListener} objects.
*
* @author Michael Minella
+ * @author Mahmoud Ben Hassine
* @since 3.0
*/
public class JsrJobListenerFactoryBean extends org.springframework.batch.core.listener.JobListenerFactoryBean {
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/configuration/xml/StepFactoryBean.java b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/configuration/xml/StepFactoryBean.java
index ce5509238..11106cf6e 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/configuration/xml/StepFactoryBean.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/configuration/xml/StepFactoryBean.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013-2014 the original author or authors.
+ * Copyright 2013-2021 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.
@@ -15,12 +15,12 @@
*/
package org.springframework.batch.core.jsr.configuration.xml;
-import javax.batch.api.Batchlet;
-import javax.batch.api.chunk.CheckpointAlgorithm;
-import javax.batch.api.chunk.ItemProcessor;
-import javax.batch.api.chunk.ItemReader;
-import javax.batch.api.chunk.ItemWriter;
-import javax.batch.api.partition.PartitionReducer;
+import jakarta.batch.api.Batchlet;
+import jakarta.batch.api.chunk.CheckpointAlgorithm;
+import jakarta.batch.api.chunk.ItemProcessor;
+import jakarta.batch.api.chunk.ItemReader;
+import jakarta.batch.api.chunk.ItemWriter;
+import jakarta.batch.api.partition.PartitionReducer;
import org.springframework.batch.core.Step;
import org.springframework.batch.core.configuration.xml.StepParserStepFactoryBean;
@@ -55,6 +55,7 @@ import org.springframework.util.Assert;
*
* @author Michael Minella
* @author Chris Schaefer
+ * @author Mahmoud Ben Hassine
* @since 3.0
*/
public class StepFactoryBean extends StepParserStepFactoryBean {
@@ -198,7 +199,7 @@ public class StepFactoryBean extends StepParserStepFactoryBean {
super.setTasklet(new BatchletAdapter((Batchlet) tasklet));
} else {
throw new IllegalArgumentException("The field tasklet must reference an implementation of " +
- "either org.springframework.batch.core.step.tasklet.Tasklet or javax.batch.api.Batchlet");
+ "either org.springframework.batch.core.step.tasklet.Tasklet or jakarta.batch.api.Batchlet");
}
}
@@ -217,7 +218,7 @@ public class StepFactoryBean extends StepParserStepFactoryBean {
super.setItemReader(new ItemReaderAdapter<>((ItemReader) itemReader));
} else {
throw new IllegalArgumentException("The definition of an item reader must implement either " +
- "org.springframework.batch.item.ItemReader or javax.batch.api.chunk.ItemReader");
+ "org.springframework.batch.item.ItemReader or jakarta.batch.api.chunk.ItemReader");
}
}
@@ -236,7 +237,7 @@ public class StepFactoryBean extends StepParserStepFactoryBean {
super.setItemProcessor(new ItemProcessorAdapter<>((ItemProcessor) itemProcessor));
} else {
throw new IllegalArgumentException("The definition of an item processor must implement either " +
- "org.springframework.batch.item.ItemProcessor or javax.batch.api.chunk.ItemProcessor");
+ "org.springframework.batch.item.ItemProcessor or jakarta.batch.api.chunk.ItemProcessor");
}
}
@@ -255,7 +256,7 @@ public class StepFactoryBean extends StepParserStepFactoryBean {
super.setItemWriter(new ItemWriterAdapter<>((ItemWriter) itemWriter));
} else {
throw new IllegalArgumentException("The definition of an item writer must implement either " +
- "org.springframework.batch.item.ItemWriter or javax.batch.api.chunk.ItemWriter");
+ "org.springframework.batch.item.ItemWriter or jakarta.batch.api.chunk.ItemWriter");
}
}
@@ -273,7 +274,7 @@ public class StepFactoryBean extends StepParserStepFactoryBean {
super.setChunkCompletionPolicy(new CheckpointAlgorithmAdapter((CheckpointAlgorithm) chunkCompletionPolicy));
} else {
throw new IllegalArgumentException("The definition of a chunk completion policy must implement either " +
- "org.springframework.batch.repeat.CompletionPolicy or javax.batch.api.chunk.CheckpointAlgorithm");
+ "org.springframework.batch.repeat.CompletionPolicy or jakarta.batch.api.chunk.CheckpointAlgorithm");
}
}
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/launch/JsrJobOperator.java b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/launch/JsrJobOperator.java
index 3705480c0..96f824844 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/launch/JsrJobOperator.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/launch/JsrJobOperator.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013-2019 the original author or authors.
+ * Copyright 2013-2021 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.
@@ -26,22 +26,22 @@ import java.util.Properties;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.Semaphore;
-import javax.batch.operations.BatchRuntimeException;
-import javax.batch.operations.JobExecutionAlreadyCompleteException;
-import javax.batch.operations.JobExecutionIsRunningException;
-import javax.batch.operations.JobExecutionNotMostRecentException;
-import javax.batch.operations.JobExecutionNotRunningException;
-import javax.batch.operations.JobOperator;
-import javax.batch.operations.JobRestartException;
-import javax.batch.operations.JobSecurityException;
-import javax.batch.operations.JobStartException;
-import javax.batch.operations.NoSuchJobException;
-import javax.batch.operations.NoSuchJobExecutionException;
-import javax.batch.operations.NoSuchJobInstanceException;
-import javax.batch.runtime.BatchRuntime;
-import javax.batch.runtime.JobExecution;
-import javax.batch.runtime.JobInstance;
-import javax.batch.runtime.StepExecution;
+import jakarta.batch.operations.BatchRuntimeException;
+import jakarta.batch.operations.JobExecutionAlreadyCompleteException;
+import jakarta.batch.operations.JobExecutionIsRunningException;
+import jakarta.batch.operations.JobExecutionNotMostRecentException;
+import jakarta.batch.operations.JobExecutionNotRunningException;
+import jakarta.batch.operations.JobOperator;
+import jakarta.batch.operations.JobRestartException;
+import jakarta.batch.operations.JobSecurityException;
+import jakarta.batch.operations.JobStartException;
+import jakarta.batch.operations.NoSuchJobException;
+import jakarta.batch.operations.NoSuchJobExecutionException;
+import jakarta.batch.operations.NoSuchJobInstanceException;
+import jakarta.batch.runtime.BatchRuntime;
+import jakarta.batch.runtime.JobExecution;
+import jakarta.batch.runtime.JobInstance;
+import jakarta.batch.runtime.StepExecution;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
@@ -240,7 +240,7 @@ public class JsrJobOperator implements JobOperator, ApplicationContextAware, Ini
}
/* (non-Javadoc)
- * @see javax.batch.operations.JobOperator#abandon(long)
+ * @see jakarta.batch.operations.JobOperator#abandon(long)
*/
@Override
public void abandon(long jobExecutionId) throws NoSuchJobExecutionException,
@@ -260,7 +260,7 @@ public class JsrJobOperator implements JobOperator, ApplicationContextAware, Ini
}
/* (non-Javadoc)
- * @see javax.batch.operations.JobOperator#getJobExecution(long)
+ * @see jakarta.batch.operations.JobOperator#getJobExecution(long)
*/
@Override
public JobExecution getJobExecution(long executionId)
@@ -275,7 +275,7 @@ public class JsrJobOperator implements JobOperator, ApplicationContextAware, Ini
}
/* (non-Javadoc)
- * @see javax.batch.operations.JobOperator#getJobExecutions(javax.batch.runtime.JobInstance)
+ * @see jakarta.batch.operations.JobOperator#getJobExecutions(jakarta.batch.runtime.JobInstance)
*/
@Override
public List getJobExecutions(JobInstance jobInstance)
@@ -300,7 +300,7 @@ public class JsrJobOperator implements JobOperator, ApplicationContextAware, Ini
}
/* (non-Javadoc)
- * @see javax.batch.operations.JobOperator#getJobInstance(long)
+ * @see jakarta.batch.operations.JobOperator#getJobInstance(long)
*/
@Override
public JobInstance getJobInstance(long executionId)
@@ -315,7 +315,7 @@ public class JsrJobOperator implements JobOperator, ApplicationContextAware, Ini
}
/* (non-Javadoc)
- * @see javax.batch.operations.JobOperator#getJobInstanceCount(java.lang.String)
+ * @see jakarta.batch.operations.JobOperator#getJobInstanceCount(java.lang.String)
*/
@Override
public int getJobInstanceCount(String jobName) throws NoSuchJobException,
@@ -334,7 +334,7 @@ public class JsrJobOperator implements JobOperator, ApplicationContextAware, Ini
}
/* (non-Javadoc)
- * @see javax.batch.operations.JobOperator#getJobInstances(java.lang.String, int, int)
+ * @see jakarta.batch.operations.JobOperator#getJobInstances(java.lang.String, int, int)
*/
@Override
public List getJobInstances(String jobName, int start, int count)
@@ -349,7 +349,7 @@ public class JsrJobOperator implements JobOperator, ApplicationContextAware, Ini
}
/* (non-Javadoc)
- * @see javax.batch.operations.JobOperator#getJobNames()
+ * @see jakarta.batch.operations.JobOperator#getJobNames()
*/
@Override
public Set getJobNames() throws JobSecurityException {
@@ -357,7 +357,7 @@ public class JsrJobOperator implements JobOperator, ApplicationContextAware, Ini
}
/* (non-Javadoc)
- * @see javax.batch.operations.JobOperator#getParameters(long)
+ * @see jakarta.batch.operations.JobOperator#getParameters(long)
*/
@Override
public Properties getParameters(long executionId)
@@ -375,7 +375,7 @@ public class JsrJobOperator implements JobOperator, ApplicationContextAware, Ini
}
/* (non-Javadoc)
- * @see javax.batch.operations.JobOperator#getRunningExecutions(java.lang.String)
+ * @see jakarta.batch.operations.JobOperator#getRunningExecutions(java.lang.String)
*/
@Override
public List getRunningExecutions(String name)
@@ -396,7 +396,7 @@ public class JsrJobOperator implements JobOperator, ApplicationContextAware, Ini
}
/* (non-Javadoc)
- * @see javax.batch.operations.JobOperator#getStepExecutions(long)
+ * @see jakarta.batch.operations.JobOperator#getStepExecutions(long)
*/
@Override
public List getStepExecutions(long executionId)
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/launch/support/BatchPropertyBeanPostProcessor.java b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/launch/support/BatchPropertyBeanPostProcessor.java
index 6cf77dfeb..42b77f099 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/launch/support/BatchPropertyBeanPostProcessor.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/launch/support/BatchPropertyBeanPostProcessor.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013-2014 the original author or authors.
+ * Copyright 2013-2021 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.
@@ -22,7 +22,7 @@ import java.util.HashSet;
import java.util.Properties;
import java.util.Set;
-import javax.batch.api.BatchProperty;
+import jakarta.batch.api.BatchProperty;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
@@ -50,6 +50,7 @@ import org.springframework.util.StringUtils;
*
* @author Chris Schaefer
* @author Michael Minella
+ * @author Mahmoud Ben Hassine
* @since 3.0
*/
@SuppressWarnings("unchecked")
@@ -65,9 +66,9 @@ public class BatchPropertyBeanPostProcessor implements BeanPostProcessor, BeanFa
ClassLoader cl = BatchPropertyBeanPostProcessor.class.getClassLoader();
try {
- REQUIRED_ANNOTATIONS.add((Class extends Annotation>) cl.loadClass("javax.inject.Inject"));
+ REQUIRED_ANNOTATIONS.add((Class extends Annotation>) cl.loadClass("jakarta.inject.Inject"));
} catch (ClassNotFoundException ex) {
- LOGGER.warn("javax.inject.Inject not found - @BatchProperty marked fields will not be processed.");
+ LOGGER.warn("jakarta.inject.Inject not found - @BatchProperty marked fields will not be processed.");
}
REQUIRED_ANNOTATIONS.add(BatchProperty.class);
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/partition/JsrPartitionHandler.java b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/partition/JsrPartitionHandler.java
index 8841dfc0f..e2049b334 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/partition/JsrPartitionHandler.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/partition/JsrPartitionHandler.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013-2018 the original author or authors.
+ * Copyright 2013-2021 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.
@@ -30,10 +30,10 @@ import java.util.concurrent.FutureTask;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.locks.ReentrantLock;
-import javax.batch.api.partition.PartitionAnalyzer;
-import javax.batch.api.partition.PartitionCollector;
-import javax.batch.api.partition.PartitionMapper;
-import javax.batch.api.partition.PartitionPlan;
+import jakarta.batch.api.partition.PartitionAnalyzer;
+import jakarta.batch.api.partition.PartitionCollector;
+import jakarta.batch.api.partition.PartitionMapper;
+import jakarta.batch.api.partition.PartitionPlan;
import org.springframework.batch.core.BatchStatus;
import org.springframework.batch.core.ExitStatus;
@@ -443,7 +443,7 @@ public class JsrPartitionHandler implements PartitionHandler, InitializingBean {
}
/* (non-Javadoc)
- * @see javax.batch.api.partition.PartitionPlan#getPartitionProperties()
+ * @see jakarta.batch.api.partition.PartitionPlan#getPartitionProperties()
*/
@Override
public Properties[] getPartitionProperties() {
@@ -451,7 +451,7 @@ public class JsrPartitionHandler implements PartitionHandler, InitializingBean {
}
/* (non-Javadoc)
- * @see javax.batch.api.partition.PartitionPlan#getPartitions()
+ * @see jakarta.batch.api.partition.PartitionPlan#getPartitions()
*/
@Override
public int getPartitions() {
@@ -459,7 +459,7 @@ public class JsrPartitionHandler implements PartitionHandler, InitializingBean {
}
/* (non-Javadoc)
- * @see javax.batch.api.partition.PartitionPlan#getThreads()
+ * @see jakarta.batch.api.partition.PartitionPlan#getThreads()
*/
@Override
public int getThreads() {
@@ -467,7 +467,7 @@ public class JsrPartitionHandler implements PartitionHandler, InitializingBean {
}
/* (non-Javadoc)
- * @see javax.batch.api.partition.PartitionPlan#setPartitions(int)
+ * @see jakarta.batch.api.partition.PartitionPlan#setPartitions(int)
*/
@Override
public void setPartitions(int count) {
@@ -475,7 +475,7 @@ public class JsrPartitionHandler implements PartitionHandler, InitializingBean {
}
/* (non-Javadoc)
- * @see javax.batch.api.partition.PartitionPlan#setPartitionsOverride(boolean)
+ * @see jakarta.batch.api.partition.PartitionPlan#setPartitionsOverride(boolean)
*/
@Override
public void setPartitionsOverride(boolean override) {
@@ -483,7 +483,7 @@ public class JsrPartitionHandler implements PartitionHandler, InitializingBean {
}
/* (non-Javadoc)
- * @see javax.batch.api.partition.PartitionPlan#getPartitionsOverride()
+ * @see jakarta.batch.api.partition.PartitionPlan#getPartitionsOverride()
*/
@Override
public boolean getPartitionsOverride() {
@@ -491,7 +491,7 @@ public class JsrPartitionHandler implements PartitionHandler, InitializingBean {
}
/* (non-Javadoc)
- * @see javax.batch.api.partition.PartitionPlan#setThreads(int)
+ * @see jakarta.batch.api.partition.PartitionPlan#setThreads(int)
*/
@Override
public void setThreads(int count) {
@@ -499,7 +499,7 @@ public class JsrPartitionHandler implements PartitionHandler, InitializingBean {
}
/* (non-Javadoc)
- * @see javax.batch.api.partition.PartitionPlan#setPartitionProperties(java.util.Properties[])
+ * @see jakarta.batch.api.partition.PartitionPlan#setPartitionProperties(java.util.Properties[])
*/
@Override
public void setPartitionProperties(Properties[] props) {
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/partition/PartitionCollectorAdapter.java b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/partition/PartitionCollectorAdapter.java
index 248f1d589..806eb3e1d 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/partition/PartitionCollectorAdapter.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/partition/PartitionCollectorAdapter.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013-2018 the original author or authors.
+ * Copyright 2013-2021 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.
@@ -19,8 +19,8 @@ import java.io.Serializable;
import java.util.Queue;
import java.util.concurrent.locks.ReentrantLock;
-import javax.batch.api.partition.PartitionCollector;
-import javax.batch.operations.BatchRuntimeException;
+import jakarta.batch.api.partition.PartitionCollector;
+import jakarta.batch.operations.BatchRuntimeException;
import org.springframework.batch.core.ChunkListener;
import org.springframework.batch.core.scope.context.ChunkContext;
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/partition/support/JsrBeanScopeBeanFactoryPostProcessor.java b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/partition/support/JsrBeanScopeBeanFactoryPostProcessor.java
index fcd28a759..067f19fe3 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/partition/support/JsrBeanScopeBeanFactoryPostProcessor.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/partition/support/JsrBeanScopeBeanFactoryPostProcessor.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013 the original author or authors.
+ * Copyright 2013-2021 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.
@@ -24,9 +24,9 @@ import org.springframework.beans.factory.config.BeanFactoryPostProcessor;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.beans.factory.config.RuntimeBeanReference;
-import javax.batch.api.partition.PartitionAnalyzer;
-import javax.batch.api.partition.PartitionMapper;
-import javax.batch.api.partition.PartitionReducer;
+import jakarta.batch.api.partition.PartitionAnalyzer;
+import jakarta.batch.api.partition.PartitionMapper;
+import jakarta.batch.api.partition.PartitionReducer;
/**
* In order for property resolution to occur correctly within the scope of a JSR-352
@@ -36,6 +36,7 @@ import javax.batch.api.partition.PartitionReducer;
* lazy initialization (equivalent to lazy-init="true").
*
* @author Michael Minella
+ * @author Mahmoud Ben Hassine
* @since 3.0
*/
public class JsrBeanScopeBeanFactoryPostProcessor implements BeanFactoryPostProcessor {
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/step/DecisionStep.java b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/step/DecisionStep.java
index 25f9e63d7..35e2d82d0 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/step/DecisionStep.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/step/DecisionStep.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013-2014 the original author or authors.
+ * Copyright 2013-2021 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.
@@ -19,7 +19,7 @@ import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
-import javax.batch.api.Decider;
+import jakarta.batch.api.Decider;
import org.springframework.batch.core.ExitStatus;
import org.springframework.batch.core.Step;
@@ -31,10 +31,11 @@ import org.springframework.batch.item.ExecutionContext;
/**
* Implements a {@link Step} to follow the rules for a decision state
* as defined by JSR-352. Currently does not support the JSR requirement
- * to provide all of the last {@link javax.batch.runtime.StepExecution}s from
+ * to provide all of the last {@link jakarta.batch.runtime.StepExecution}s from
* a split.
*
* @author Michael Minella
+ * @author Mahmoud Ben Hassine
* @since 3.0
*/
public class DecisionStep extends AbstractStep {
@@ -52,7 +53,7 @@ public class DecisionStep extends AbstractStep {
@Override
protected void doExecute(StepExecution stepExecution) throws Exception {
ExecutionContext executionContext = stepExecution.getJobExecution().getExecutionContext();
- List stepExecutions = new ArrayList<>();
+ List stepExecutions = new ArrayList<>();
if(executionContext.containsKey("batch.lastSteps")) {
List stepNames = (List) executionContext.get("batch.lastSteps");
@@ -78,7 +79,7 @@ public class DecisionStep extends AbstractStep {
}
try {
- ExitStatus exitStatus = new ExitStatus(decider.decide(stepExecutions.toArray(new javax.batch.runtime.StepExecution[0])));
+ ExitStatus exitStatus = new ExitStatus(decider.decide(stepExecutions.toArray(new jakarta.batch.runtime.StepExecution[0])));
stepExecution.getJobExecution().setExitStatus(exitStatus);
stepExecution.setExitStatus(exitStatus);
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/step/PartitionStep.java b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/step/PartitionStep.java
index cb69187ea..de040ed18 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/step/PartitionStep.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/step/PartitionStep.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013-2019 the original author or authors.
+ * Copyright 2013-2021 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.
@@ -17,8 +17,8 @@ package org.springframework.batch.core.jsr.step;
import java.util.Collection;
-import javax.batch.api.partition.PartitionReducer;
-import javax.batch.api.partition.PartitionReducer.PartitionStatus;
+import jakarta.batch.api.partition.PartitionReducer;
+import jakarta.batch.api.partition.PartitionReducer.PartitionStatus;
import org.springframework.batch.core.BatchStatus;
import org.springframework.batch.core.JobExecutionException;
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/step/batchlet/BatchletAdapter.java b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/step/batchlet/BatchletAdapter.java
index 1bf71cfbd..f886aefe3 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/step/batchlet/BatchletAdapter.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/step/batchlet/BatchletAdapter.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013-2019 the original author or authors.
+ * Copyright 2013-2021 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.
@@ -15,8 +15,8 @@
*/
package org.springframework.batch.core.jsr.step.batchlet;
-import javax.batch.api.Batchlet;
-import javax.batch.operations.BatchRuntimeException;
+import jakarta.batch.api.Batchlet;
+import jakarta.batch.operations.BatchRuntimeException;
import org.springframework.batch.core.ExitStatus;
import org.springframework.batch.core.StepContribution;
@@ -30,6 +30,7 @@ import org.springframework.util.StringUtils;
/**
*
* @author Michael Minella
+ * @author Mahmoud Ben Hassine
* @since 3.0
*/
public class BatchletAdapter implements StoppableTasklet {
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/step/batchlet/package-info.java b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/step/batchlet/package-info.java
index b97f3ed73..1c60e42fd 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/step/batchlet/package-info.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/step/batchlet/package-info.java
@@ -1,5 +1,5 @@
/**
- * Classes for supporting JSR-352's {@link javax.batch.api.Batchlet}.
+ * Classes for supporting JSR-352's {@link jakarta.batch.api.Batchlet}.
*
* @author Michael Minella
* @author Mahmoud Ben Hassine
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/step/builder/JsrPartitionStepBuilder.java b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/step/builder/JsrPartitionStepBuilder.java
index 12a9a410e..ef0789343 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/step/builder/JsrPartitionStepBuilder.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/step/builder/JsrPartitionStepBuilder.java
@@ -15,7 +15,7 @@
*/
package org.springframework.batch.core.jsr.step.builder;
-import javax.batch.api.partition.PartitionReducer;
+import jakarta.batch.api.partition.PartitionReducer;
import org.springframework.batch.core.Step;
import org.springframework.batch.core.jsr.step.PartitionStep;
@@ -31,6 +31,7 @@ import org.springframework.core.task.SyncTaskExecutor;
* so that JSR-352 specific semantics are honored.
*
* @author Michael Minella
+ * @author Mahmoud Ben Hassine
* @since 3.0
*/
public class JsrPartitionStepBuilder extends PartitionStepBuilder {
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/step/item/JsrFaultTolerantChunkProcessor.java b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/step/item/JsrFaultTolerantChunkProcessor.java
index 11983c8ba..951f93c96 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/step/item/JsrFaultTolerantChunkProcessor.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/jsr/step/item/JsrFaultTolerantChunkProcessor.java
@@ -40,7 +40,7 @@ import org.springframework.retry.RetryContext;
import org.springframework.retry.RetryException;
import org.springframework.util.Assert;
-import javax.batch.operations.BatchRuntimeException;
+import jakarta.batch.operations.BatchRuntimeException;
import java.util.List;
/**
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/listener/CompositeRetryProcessListener.java b/spring-batch-core/src/main/java/org/springframework/batch/core/listener/CompositeRetryProcessListener.java
index d5e0debaf..86ef3fe22 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/listener/CompositeRetryProcessListener.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/listener/CompositeRetryProcessListener.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013 the original author or authors.
+ * Copyright 2013-2021 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.
@@ -17,7 +17,7 @@ package org.springframework.batch.core.listener;
import java.util.Iterator;
import java.util.List;
-import javax.batch.api.chunk.listener.RetryProcessListener;
+import jakarta.batch.api.chunk.listener.RetryProcessListener;
/**
*
@@ -25,6 +25,7 @@ import javax.batch.api.chunk.listener.RetryProcessListener;
*
*
* @author Chris Schaefer
+ * @author Mahmoud Ben Hassine
* @since 3.0
*/
public class CompositeRetryProcessListener implements RetryProcessListener {
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/listener/CompositeRetryReadListener.java b/spring-batch-core/src/main/java/org/springframework/batch/core/listener/CompositeRetryReadListener.java
index d26564bb3..e50fbbcb6 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/listener/CompositeRetryReadListener.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/listener/CompositeRetryReadListener.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013 the original author or authors.
+ * Copyright 2013-2021 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.
@@ -17,7 +17,7 @@ package org.springframework.batch.core.listener;
import java.util.Iterator;
import java.util.List;
-import javax.batch.api.chunk.listener.RetryReadListener;
+import jakarta.batch.api.chunk.listener.RetryReadListener;
/**
*
@@ -25,6 +25,7 @@ import javax.batch.api.chunk.listener.RetryReadListener;
*
*
* @author Chris Schaefer
+ * @author Mahmoud Ben Hassine
* @since 3.0
*/
public class CompositeRetryReadListener implements RetryReadListener {
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/listener/CompositeRetryWriteListener.java b/spring-batch-core/src/main/java/org/springframework/batch/core/listener/CompositeRetryWriteListener.java
index 70f013fa6..0238abdfd 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/listener/CompositeRetryWriteListener.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/listener/CompositeRetryWriteListener.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013 the original author or authors.
+ * Copyright 2013-2021 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.
@@ -17,7 +17,7 @@ package org.springframework.batch.core.listener;
import java.util.Iterator;
import java.util.List;
-import javax.batch.api.chunk.listener.RetryWriteListener;
+import jakarta.batch.api.chunk.listener.RetryWriteListener;
/**
*
@@ -25,6 +25,7 @@ import javax.batch.api.chunk.listener.RetryWriteListener;
*
*
* @author Chris Schaefer
+ * @author Mahmoud Ben Hassine
* @since 3.0
*/
public class CompositeRetryWriteListener implements RetryWriteListener {
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/listener/MulticasterBatchListener.java b/spring-batch-core/src/main/java/org/springframework/batch/core/listener/MulticasterBatchListener.java
index 4866d517a..0eee67e41 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/listener/MulticasterBatchListener.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/listener/MulticasterBatchListener.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006-2019 the original author or authors.
+ * Copyright 2006-2021 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.
@@ -18,10 +18,10 @@ package org.springframework.batch.core.listener;
import java.lang.reflect.InvocationTargetException;
import java.util.List;
-import javax.batch.api.chunk.listener.RetryProcessListener;
-import javax.batch.api.chunk.listener.RetryReadListener;
-import javax.batch.api.chunk.listener.RetryWriteListener;
-import javax.batch.operations.BatchRuntimeException;
+import jakarta.batch.api.chunk.listener.RetryProcessListener;
+import jakarta.batch.api.chunk.listener.RetryReadListener;
+import jakarta.batch.api.chunk.listener.RetryWriteListener;
+import jakarta.batch.operations.BatchRuntimeException;
import org.springframework.batch.core.ChunkListener;
import org.springframework.batch.core.ExitStatus;
import org.springframework.batch.core.ItemProcessListener;
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/FaultTolerantStepBuilder.java b/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/FaultTolerantStepBuilder.java
index 5fa8bedb6..f97e69965 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/FaultTolerantStepBuilder.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/FaultTolerantStepBuilder.java
@@ -25,7 +25,7 @@ import java.util.List;
import java.util.Map;
import java.util.Set;
-import javax.batch.operations.BatchRuntimeException;
+import jakarta.batch.operations.BatchRuntimeException;
import org.springframework.batch.core.ChunkListener;
import org.springframework.batch.core.JobInterruptedException;
diff --git a/spring-batch-core/src/main/resources/META-INF/services/javax.batch.operations.JobOperator b/spring-batch-core/src/main/resources/META-INF/services/jakarta.batch.operations.JobOperator
similarity index 100%
rename from spring-batch-core/src/main/resources/META-INF/services/javax.batch.operations.JobOperator
rename to spring-batch-core/src/main/resources/META-INF/services/jakarta.batch.operations.JobOperator
diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/BatchStatusTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/BatchStatusTests.java
index 1b0efc5fc..ec0b2c2b4 100644
--- a/spring-batch-core/src/test/java/org/springframework/batch/core/BatchStatusTests.java
+++ b/spring-batch-core/src/test/java/org/springframework/batch/core/BatchStatusTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006-2007 the original author or authors.
+ * Copyright 2006-2021 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.
@@ -30,6 +30,7 @@ import org.junit.Test;
/**
* @author Dave Syer
+ * @author Mahmoud Ben Hassine
*
*/
public class BatchStatusTests {
@@ -121,12 +122,12 @@ public class BatchStatusTests {
@Test
public void testJsrConversion() {
- assertEquals(javax.batch.runtime.BatchStatus.ABANDONED, BatchStatus.ABANDONED.getBatchStatus());
- assertEquals(javax.batch.runtime.BatchStatus.COMPLETED, BatchStatus.COMPLETED.getBatchStatus());
- assertEquals(javax.batch.runtime.BatchStatus.STARTED, BatchStatus.STARTED.getBatchStatus());
- assertEquals(javax.batch.runtime.BatchStatus.STARTING, BatchStatus.STARTING.getBatchStatus());
- assertEquals(javax.batch.runtime.BatchStatus.STOPPED, BatchStatus.STOPPED.getBatchStatus());
- assertEquals(javax.batch.runtime.BatchStatus.STOPPING, BatchStatus.STOPPING.getBatchStatus());
- assertEquals(javax.batch.runtime.BatchStatus.FAILED, BatchStatus.FAILED.getBatchStatus());
+ assertEquals(jakarta.batch.runtime.BatchStatus.ABANDONED, BatchStatus.ABANDONED.getBatchStatus());
+ assertEquals(jakarta.batch.runtime.BatchStatus.COMPLETED, BatchStatus.COMPLETED.getBatchStatus());
+ assertEquals(jakarta.batch.runtime.BatchStatus.STARTED, BatchStatus.STARTED.getBatchStatus());
+ assertEquals(jakarta.batch.runtime.BatchStatus.STARTING, BatchStatus.STARTING.getBatchStatus());
+ assertEquals(jakarta.batch.runtime.BatchStatus.STOPPED, BatchStatus.STOPPED.getBatchStatus());
+ assertEquals(jakarta.batch.runtime.BatchStatus.STOPPING, BatchStatus.STOPPING.getBatchStatus());
+ assertEquals(jakarta.batch.runtime.BatchStatus.FAILED, BatchStatus.FAILED.getBatchStatus());
}
}
diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/configuration/annotation/DataSourceConfiguration.java b/spring-batch-core/src/test/java/org/springframework/batch/core/configuration/annotation/DataSourceConfiguration.java
index 084eb3225..38d74ecc5 100644
--- a/spring-batch-core/src/test/java/org/springframework/batch/core/configuration/annotation/DataSourceConfiguration.java
+++ b/spring-batch-core/src/test/java/org/springframework/batch/core/configuration/annotation/DataSourceConfiguration.java
@@ -25,7 +25,7 @@ import org.springframework.jdbc.datasource.init.DatabasePopulatorUtils;
import org.springframework.jdbc.datasource.init.ResourceDatabasePopulator;
import org.springframework.util.ClassUtils;
-import javax.annotation.PostConstruct;
+import jakarta.annotation.PostConstruct;
import javax.sql.DataSource;
@Configuration
diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/configuration/annotation/JobLoaderConfigurationTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/configuration/annotation/JobLoaderConfigurationTests.java
index 8a1ff3b74..d80db01ff 100644
--- a/spring-batch-core/src/test/java/org/springframework/batch/core/configuration/annotation/JobLoaderConfigurationTests.java
+++ b/spring-batch-core/src/test/java/org/springframework/batch/core/configuration/annotation/JobLoaderConfigurationTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2012-2019 the original author or authors.
+ * Copyright 2012-2021 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.
@@ -17,7 +17,7 @@ package org.springframework.batch.core.configuration.annotation;
import static org.junit.Assert.assertEquals;
-import javax.annotation.PostConstruct;
+import jakarta.annotation.PostConstruct;
import org.junit.Test;
@@ -46,6 +46,7 @@ import org.springframework.lang.Nullable;
/**
* @author Dave Syer
+ * @author Mahmoud Ben Hassine
*
*/
public class JobLoaderConfigurationTests {
diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/configuration/xml/TaskletStepAllowStartIfCompleteTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/configuration/xml/TaskletStepAllowStartIfCompleteTests.java
index 9aae6ae8d..97da480c2 100644
--- a/spring-batch-core/src/test/java/org/springframework/batch/core/configuration/xml/TaskletStepAllowStartIfCompleteTests.java
+++ b/spring-batch-core/src/test/java/org/springframework/batch/core/configuration/xml/TaskletStepAllowStartIfCompleteTests.java
@@ -20,7 +20,7 @@ import static org.junit.Assert.assertTrue;
import java.util.Date;
-import javax.annotation.Resource;
+import jakarta.annotation.Resource;
import org.junit.Test;
import org.junit.runner.RunWith;
diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/AbstractJsrTestCase.java b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/AbstractJsrTestCase.java
index 571efc928..ae13eba0d 100644
--- a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/AbstractJsrTestCase.java
+++ b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/AbstractJsrTestCase.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2014 the original author or authors.
+ * Copyright 2014-2021 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.
@@ -19,15 +19,16 @@ import java.util.Date;
import java.util.Properties;
import java.util.concurrent.TimeoutException;
-import javax.batch.operations.JobOperator;
-import javax.batch.runtime.BatchRuntime;
-import javax.batch.runtime.BatchStatus;
-import javax.batch.runtime.JobExecution;
-import javax.batch.runtime.Metric;
-import javax.batch.runtime.StepExecution;
+import jakarta.batch.operations.JobOperator;
+import jakarta.batch.runtime.BatchRuntime;
+import jakarta.batch.runtime.BatchStatus;
+import jakarta.batch.runtime.JobExecution;
+import jakarta.batch.runtime.Metric;
+import jakarta.batch.runtime.StepExecution;
/**
* @author mminella
+ * @author Mahmoud Ben Hassine
*/
public abstract class AbstractJsrTestCase {
@@ -38,15 +39,15 @@ public abstract class AbstractJsrTestCase {
}
/**
- * Executes a job and waits for it's status to be any of {@link javax.batch.runtime.BatchStatus#STOPPED},
- * {@link javax.batch.runtime.BatchStatus#COMPLETED}, or {@link javax.batch.runtime.BatchStatus#FAILED}. If the job does not
+ * Executes a job and waits for it's status to be any of {@link jakarta.batch.runtime.BatchStatus#STOPPED},
+ * {@link jakarta.batch.runtime.BatchStatus#COMPLETED}, or {@link jakarta.batch.runtime.BatchStatus#FAILED}. If the job does not
* reach one of those statuses within the given timeout, a {@link java.util.concurrent.TimeoutException} is
* thrown.
*
* @param jobName Name of the job to run
* @param properties Properties to pass the job
* @param timeout length of time to wait for a job to finish
- * @return the {@link javax.batch.runtime.JobExecution} for the final state of the job
+ * @return the {@link jakarta.batch.runtime.JobExecution} for the final state of the job
* @throws java.util.concurrent.TimeoutException if the timeout occurs
*/
public static JobExecution runJob(String jobName, Properties properties, long timeout) throws TimeoutException {
diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/ChunkListenerAdapterTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/ChunkListenerAdapterTests.java
index e3e36e257..40e73ad2c 100644
--- a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/ChunkListenerAdapterTests.java
+++ b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/ChunkListenerAdapterTests.java
@@ -19,8 +19,8 @@ import static org.mockito.Mockito.doThrow;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
-import javax.batch.api.chunk.listener.ChunkListener;
-import javax.batch.operations.BatchRuntimeException;
+import jakarta.batch.api.chunk.listener.ChunkListener;
+import jakarta.batch.operations.BatchRuntimeException;
import org.junit.Before;
import org.junit.Rule;
diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/ItemProcessListenerAdapterTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/ItemProcessListenerAdapterTests.java
index db9e38033..f8518894d 100644
--- a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/ItemProcessListenerAdapterTests.java
+++ b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/ItemProcessListenerAdapterTests.java
@@ -18,8 +18,8 @@ package org.springframework.batch.core.jsr;
import static org.mockito.Mockito.doThrow;
import static org.mockito.Mockito.verify;
-import javax.batch.api.chunk.listener.ItemProcessListener;
-import javax.batch.operations.BatchRuntimeException;
+import jakarta.batch.api.chunk.listener.ItemProcessListener;
+import jakarta.batch.operations.BatchRuntimeException;
import org.junit.Before;
import org.junit.Rule;
diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/ItemReadListenerAdapterTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/ItemReadListenerAdapterTests.java
index 87fd8575b..d8073a723 100644
--- a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/ItemReadListenerAdapterTests.java
+++ b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/ItemReadListenerAdapterTests.java
@@ -18,8 +18,8 @@ package org.springframework.batch.core.jsr;
import static org.mockito.Mockito.doThrow;
import static org.mockito.Mockito.verify;
-import javax.batch.api.chunk.listener.ItemReadListener;
-import javax.batch.operations.BatchRuntimeException;
+import jakarta.batch.api.chunk.listener.ItemReadListener;
+import jakarta.batch.operations.BatchRuntimeException;
import org.junit.Before;
import org.junit.Rule;
diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/ItemWriteListenerAdapterTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/ItemWriteListenerAdapterTests.java
index d6417f7bc..0fdbf662d 100644
--- a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/ItemWriteListenerAdapterTests.java
+++ b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/ItemWriteListenerAdapterTests.java
@@ -21,8 +21,8 @@ import static org.mockito.Mockito.verify;
import java.util.ArrayList;
import java.util.List;
-import javax.batch.api.chunk.listener.ItemWriteListener;
-import javax.batch.operations.BatchRuntimeException;
+import jakarta.batch.api.chunk.listener.ItemWriteListener;
+import jakarta.batch.operations.BatchRuntimeException;
import org.junit.Before;
import org.junit.Rule;
diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/JobListenerAdapterTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/JobListenerAdapterTests.java
index f047ccbdf..c90b8da4e 100644
--- a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/JobListenerAdapterTests.java
+++ b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/JobListenerAdapterTests.java
@@ -18,8 +18,8 @@ package org.springframework.batch.core.jsr;
import static org.mockito.Mockito.doThrow;
import static org.mockito.Mockito.verify;
-import javax.batch.api.listener.JobListener;
-import javax.batch.operations.BatchRuntimeException;
+import jakarta.batch.api.listener.JobListener;
+import jakarta.batch.operations.BatchRuntimeException;
import org.junit.Before;
import org.junit.Rule;
diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/JsrJobContextFactoryBeanTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/JsrJobContextFactoryBeanTests.java
index fbcee4b19..269b993ec 100644
--- a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/JsrJobContextFactoryBeanTests.java
+++ b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/JsrJobContextFactoryBeanTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013-2018 the original author or authors.
+ * Copyright 2013-2021 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.
@@ -26,7 +26,7 @@ import java.util.Set;
import java.util.concurrent.Callable;
import java.util.concurrent.Future;
-import javax.batch.runtime.context.JobContext;
+import jakarta.batch.runtime.context.JobContext;
import org.junit.After;
import org.junit.Before;
diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/JsrJobContextTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/JsrJobContextTests.java
index cafc580ec..5f525abae 100644
--- a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/JsrJobContextTests.java
+++ b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/JsrJobContextTests.java
@@ -111,7 +111,7 @@ public class JsrJobContextTests {
public void testGetBatchStatus() {
when(execution.getStatus()).thenReturn(BatchStatus.COMPLETED);
- assertEquals(javax.batch.runtime.BatchStatus.COMPLETED, context.getBatchStatus());
+ assertEquals(jakarta.batch.runtime.BatchStatus.COMPLETED, context.getBatchStatus());
}
@Test
diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/JsrJobExecutionTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/JsrJobExecutionTests.java
index 14948fa72..8f9f81941 100644
--- a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/JsrJobExecutionTests.java
+++ b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/JsrJobExecutionTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2014 the original author or authors.
+ * Copyright 2014-2021 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.
@@ -61,7 +61,7 @@ public class JsrJobExecutionTests {
@Test
public void testGetBasicValues() {
- assertEquals(javax.batch.runtime.BatchStatus.FAILED, adapter.getBatchStatus());
+ assertEquals(jakarta.batch.runtime.BatchStatus.FAILED, adapter.getBatchStatus());
assertEquals(new Date(0), adapter.getCreateTime());
assertEquals(new Date(999999999L), adapter.getEndTime());
assertEquals(5L, adapter.getExecutionId());
diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/JsrStepContextFactoryBeanTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/JsrStepContextFactoryBeanTests.java
index b4b643798..f8f567179 100644
--- a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/JsrStepContextFactoryBeanTests.java
+++ b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/JsrStepContextFactoryBeanTests.java
@@ -27,7 +27,7 @@ import java.util.Set;
import java.util.concurrent.Callable;
import java.util.concurrent.Future;
-import javax.batch.runtime.context.StepContext;
+import jakarta.batch.runtime.context.StepContext;
import org.junit.After;
import org.junit.Before;
diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/JsrStepContextTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/JsrStepContextTests.java
index 86ae93b65..9be1b6a84 100644
--- a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/JsrStepContextTests.java
+++ b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/JsrStepContextTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013 the original author or authors.
+ * Copyright 2013-2021 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.
@@ -22,8 +22,8 @@ import static org.junit.Assert.fail;
import java.util.Properties;
-import javax.batch.runtime.Metric;
-import javax.batch.runtime.context.StepContext;
+import jakarta.batch.runtime.Metric;
+import jakarta.batch.runtime.context.StepContext;
import org.junit.Before;
import org.junit.Test;
@@ -71,7 +71,7 @@ public class JsrStepContextTests {
@Test
public void testBasicProperties() {
- assertEquals(javax.batch.runtime.BatchStatus.STARTED, stepContext.getBatchStatus());
+ assertEquals(jakarta.batch.runtime.BatchStatus.STARTED, stepContext.getBatchStatus());
assertEquals(null, stepContext.getExitStatus());
stepContext.setExitStatus("customExitStatus");
assertEquals("customExitStatus", stepContext.getExitStatus());
diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/JsrStepExecutionTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/JsrStepExecutionTests.java
index 6fd8b255e..c437e6af6 100644
--- a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/JsrStepExecutionTests.java
+++ b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/JsrStepExecutionTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2014 the original author or authors.
+ * Copyright 2014-2021 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.
@@ -21,7 +21,7 @@ import static org.junit.Assert.fail;
import java.util.Date;
-import javax.batch.runtime.Metric;
+import jakarta.batch.runtime.Metric;
import org.junit.Before;
import org.junit.Test;
@@ -36,7 +36,7 @@ import org.springframework.util.ClassUtils;
public class JsrStepExecutionTests {
private StepExecution stepExecution;
- private javax.batch.runtime.StepExecution jsrStepExecution;
+ private jakarta.batch.runtime.StepExecution jsrStepExecution;
//The API that sets the persisted user data is on the JsrStepContext so the key within the ExecutionContext is JsrStepContext
private ExecutionContextUserSupport executionContextUserSupport = new ExecutionContextUserSupport(ClassUtils.getShortName(JsrStepContext.class));
@@ -79,7 +79,7 @@ public class JsrStepExecutionTests {
public void testBaseValues() {
assertEquals(5L, jsrStepExecution.getStepExecutionId());
assertEquals("testStep", jsrStepExecution.getStepName());
- assertEquals(javax.batch.runtime.BatchStatus.STARTED, jsrStepExecution.getBatchStatus());
+ assertEquals(jakarta.batch.runtime.BatchStatus.STARTED, jsrStepExecution.getBatchStatus());
assertEquals(new Date(0), jsrStepExecution.getStartTime());
assertEquals(new Date(10000000), jsrStepExecution.getEndTime());
assertEquals("customExitStatus", jsrStepExecution.getExitStatus());
diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/SimpleMetricTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/SimpleMetricTests.java
index 364b662ea..2758e7199 100644
--- a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/SimpleMetricTests.java
+++ b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/SimpleMetricTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013-2014 the original author or authors.
+ * Copyright 2013-2021 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.
@@ -17,8 +17,8 @@ package org.springframework.batch.core.jsr;
import static org.junit.Assert.assertEquals;
-import javax.batch.runtime.Metric;
-import javax.batch.runtime.Metric.MetricType;
+import jakarta.batch.runtime.Metric;
+import jakarta.batch.runtime.Metric.MetricType;
import org.junit.Test;
diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/StepListenerAdapterTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/StepListenerAdapterTests.java
index 8497e5fcf..10666c9a6 100644
--- a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/StepListenerAdapterTests.java
+++ b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/StepListenerAdapterTests.java
@@ -20,8 +20,8 @@ import static org.mockito.Mockito.doThrow;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
-import javax.batch.api.listener.StepListener;
-import javax.batch.operations.BatchRuntimeException;
+import jakarta.batch.api.listener.StepListener;
+import jakarta.batch.operations.BatchRuntimeException;
import org.junit.Before;
import org.junit.Rule;
diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/ChunkListenerParsingTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/ChunkListenerParsingTests.java
index 0aa0660d2..3165d1681 100644
--- a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/ChunkListenerParsingTests.java
+++ b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/ChunkListenerParsingTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013 the original author or authors.
+ * Copyright 2013-2021 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.
@@ -19,7 +19,7 @@ import static org.junit.Assert.assertEquals;
import java.util.List;
-import javax.batch.api.chunk.AbstractItemWriter;
+import jakarta.batch.api.chunk.AbstractItemWriter;
import org.junit.Test;
import org.junit.runner.RunWith;
@@ -85,7 +85,7 @@ public class ChunkListenerParsingTests {
}
}
- public static class JsrChunkListener implements javax.batch.api.chunk.listener.ChunkListener {
+ public static class JsrChunkListener implements jakarta.batch.api.chunk.listener.ChunkListener {
protected int beforeChunkCount = 0;
protected int afterChunkCount = 0;
diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/CountingItemProcessor.java b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/CountingItemProcessor.java
index 5444c3c55..1921160e1 100644
--- a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/CountingItemProcessor.java
+++ b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/CountingItemProcessor.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013 the original author or authors.
+ * Copyright 2013-2021 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.
@@ -15,7 +15,7 @@
*/
package org.springframework.batch.core.jsr.configuration.xml;
-import javax.batch.api.chunk.ItemProcessor;
+import jakarta.batch.api.chunk.ItemProcessor;
public class CountingItemProcessor implements ItemProcessor {
diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/CustomWiredJsrJobOperatorTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/CustomWiredJsrJobOperatorTests.java
index 037c627c3..8da8c5e14 100644
--- a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/CustomWiredJsrJobOperatorTests.java
+++ b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/CustomWiredJsrJobOperatorTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2014 the original author or authors.
+ * Copyright 2014-2021 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.
@@ -19,9 +19,9 @@ import java.util.Date;
import java.util.Properties;
import java.util.concurrent.TimeoutException;
-import javax.batch.operations.JobOperator;
-import javax.batch.runtime.BatchStatus;
-import javax.batch.runtime.JobExecution;
+import jakarta.batch.operations.JobOperator;
+import jakarta.batch.runtime.BatchStatus;
+import jakarta.batch.runtime.JobExecution;
import org.junit.Test;
import org.junit.runner.RunWith;
@@ -32,6 +32,7 @@ import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
/**
* @author Michael Minella
+ * @author Mahmoud Ben Hassine
*/
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration
diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/DecisionStepFactoryBeanTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/DecisionStepFactoryBeanTests.java
index 3626d92f6..ca95920f2 100644
--- a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/DecisionStepFactoryBeanTests.java
+++ b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/DecisionStepFactoryBeanTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013 the original author or authors.
+ * Copyright 2013-2021 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.
@@ -18,8 +18,8 @@ package org.springframework.batch.core.jsr.configuration.xml;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
-import javax.batch.api.Decider;
-import javax.batch.runtime.StepExecution;
+import jakarta.batch.api.Decider;
+import jakarta.batch.runtime.StepExecution;
import org.junit.Before;
import org.junit.Test;
diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/ExceptionHandlingParsingTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/ExceptionHandlingParsingTests.java
index 454f9c637..b9f05ab73 100644
--- a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/ExceptionHandlingParsingTests.java
+++ b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/ExceptionHandlingParsingTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013 the original author or authors.
+ * Copyright 2013-2021 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.
@@ -18,15 +18,15 @@ package org.springframework.batch.core.jsr.configuration.xml;
import org.junit.Test;
import org.springframework.batch.core.jsr.AbstractJsrTestCase;
-import javax.batch.api.BatchProperty;
-import javax.batch.api.chunk.ItemProcessor;
-import javax.batch.operations.JobOperator;
-import javax.batch.runtime.BatchRuntime;
-import javax.batch.runtime.BatchStatus;
-import javax.batch.runtime.JobExecution;
-import javax.batch.runtime.Metric;
-import javax.batch.runtime.StepExecution;
-import javax.inject.Inject;
+import jakarta.batch.api.BatchProperty;
+import jakarta.batch.api.chunk.ItemProcessor;
+import jakarta.batch.operations.JobOperator;
+import jakarta.batch.runtime.BatchRuntime;
+import jakarta.batch.runtime.BatchStatus;
+import jakarta.batch.runtime.JobExecution;
+import jakarta.batch.runtime.Metric;
+import jakarta.batch.runtime.StepExecution;
+import jakarta.inject.Inject;
import java.util.List;
import java.util.Properties;
diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/FlowParserTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/FlowParserTests.java
index fc0f54bb8..eb202deba 100644
--- a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/FlowParserTests.java
+++ b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/FlowParserTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013-2014 the original author or authors.
+ * Copyright 2013-2021 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.
@@ -19,13 +19,13 @@ import org.junit.Test;
import org.springframework.batch.core.ExitStatus;
import org.springframework.batch.core.jsr.AbstractJsrTestCase;
-import javax.batch.api.AbstractBatchlet;
-import javax.batch.operations.JobOperator;
-import javax.batch.runtime.BatchRuntime;
-import javax.batch.runtime.JobExecution;
-import javax.batch.runtime.StepExecution;
-import javax.batch.runtime.context.StepContext;
-import javax.inject.Inject;
+import jakarta.batch.api.AbstractBatchlet;
+import jakarta.batch.operations.JobOperator;
+import jakarta.batch.runtime.BatchRuntime;
+import jakarta.batch.runtime.JobExecution;
+import jakarta.batch.runtime.StepExecution;
+import jakarta.batch.runtime.context.StepContext;
+import jakarta.inject.Inject;
import java.util.List;
import java.util.Properties;
@@ -38,6 +38,7 @@ import static org.junit.Assert.assertTrue;
*
*
* @author Chris Schaefer
+ * @author Mahmoud Ben Hassine
* @since 3.0
*/
public class FlowParserTests extends AbstractJsrTestCase {
diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/ItemListenerParsingTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/ItemListenerParsingTests.java
index c27e95b1e..646436e56 100644
--- a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/ItemListenerParsingTests.java
+++ b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/ItemListenerParsingTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013-2019 the original author or authors.
+ * Copyright 2013-2021 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.
@@ -127,7 +127,7 @@ public class ItemListenerParsingTests {
}
}
- public static class JsrItemListener implements javax.batch.api.chunk.listener.ItemReadListener, javax.batch.api.chunk.listener.ItemProcessListener, javax.batch.api.chunk.listener.ItemWriteListener {
+ public static class JsrItemListener implements jakarta.batch.api.chunk.listener.ItemReadListener, jakarta.batch.api.chunk.listener.ItemProcessListener, jakarta.batch.api.chunk.listener.ItemWriteListener {
protected int beforeReadCount = 0;
protected int afterReadCount = 0;
diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/ItemSkipParsingTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/ItemSkipParsingTests.java
index 190db67a0..bac1380ae 100644
--- a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/ItemSkipParsingTests.java
+++ b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/ItemSkipParsingTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013-2019 the original author or authors.
+ * Copyright 2013-2021 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.
@@ -22,14 +22,14 @@ import org.springframework.batch.item.ItemReader;
import org.springframework.batch.item.ItemWriter;
import org.springframework.lang.Nullable;
-import javax.batch.api.chunk.listener.SkipProcessListener;
-import javax.batch.api.chunk.listener.SkipReadListener;
-import javax.batch.api.chunk.listener.SkipWriteListener;
-import javax.batch.operations.JobOperator;
-import javax.batch.runtime.BatchRuntime;
-import javax.batch.runtime.BatchStatus;
-import javax.batch.runtime.Metric;
-import javax.batch.runtime.StepExecution;
+import jakarta.batch.api.chunk.listener.SkipProcessListener;
+import jakarta.batch.api.chunk.listener.SkipReadListener;
+import jakarta.batch.api.chunk.listener.SkipWriteListener;
+import jakarta.batch.operations.JobOperator;
+import jakarta.batch.runtime.BatchRuntime;
+import jakarta.batch.runtime.BatchStatus;
+import jakarta.batch.runtime.Metric;
+import jakarta.batch.runtime.StepExecution;
import java.util.ArrayList;
import java.util.List;
import java.util.Properties;
@@ -40,7 +40,7 @@ public class ItemSkipParsingTests extends AbstractJsrTestCase {
@Test
public void test() throws Exception {
- javax.batch.runtime.JobExecution execution = runJob("ItemSkipParsingTests-context", new Properties(), 10000l);
+ jakarta.batch.runtime.JobExecution execution = runJob("ItemSkipParsingTests-context", new Properties(), 10000l);
JobOperator jobOperator = BatchRuntime.getJobOperator();
assertEquals(BatchStatus.FAILED, execution.getBatchStatus());
diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/JobListenerParsingTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/JobListenerParsingTests.java
index 2c9bafad8..12aa270fe 100644
--- a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/JobListenerParsingTests.java
+++ b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/JobListenerParsingTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013 the original author or authors.
+ * Copyright 2013-2021 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.
@@ -18,7 +18,7 @@ package org.springframework.batch.core.jsr.configuration.xml;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
-import javax.batch.api.listener.JobListener;
+import jakarta.batch.api.listener.JobListener;
import org.junit.Test;
import org.junit.runner.RunWith;
diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/JobPropertySubstitutionTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/JobPropertySubstitutionTests.java
index 2a3ba0fde..fc20a989c 100644
--- a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/JobPropertySubstitutionTests.java
+++ b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/JobPropertySubstitutionTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013 the original author or authors.
+ * Copyright 2013-2021 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.
@@ -17,11 +17,11 @@ package org.springframework.batch.core.jsr.configuration.xml;
import java.io.Serializable;
import java.util.List;
-import javax.batch.api.BatchProperty;
-import javax.batch.api.chunk.ItemProcessor;
-import javax.batch.api.chunk.ItemReader;
-import javax.batch.api.chunk.ItemWriter;
-import javax.inject.Inject;
+import jakarta.batch.api.BatchProperty;
+import jakarta.batch.api.chunk.ItemProcessor;
+import jakarta.batch.api.chunk.ItemReader;
+import jakarta.batch.api.chunk.ItemWriter;
+import jakarta.inject.Inject;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.batch.core.ExitStatus;
@@ -42,6 +42,7 @@ import static org.junit.Assert.assertEquals;
* TODO: enhance test cases with more complex substitutions
*
* @author Chris Schaefer
+ * @author Mahmoud Ben Hassine
* @since 3.0
*/
@ContextConfiguration
diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/JobPropertyTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/JobPropertyTests.java
index 0bc24eadb..0df62768b 100644
--- a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/JobPropertyTests.java
+++ b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/JobPropertyTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013-2019 the original author or authors.
+ * Copyright 2013-2021 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.
@@ -18,18 +18,18 @@ package org.springframework.batch.core.jsr.configuration.xml;
import java.io.Serializable;
import java.util.List;
import java.util.Properties;
-import javax.batch.api.BatchProperty;
-import javax.batch.api.Batchlet;
-import javax.batch.api.Decider;
-import javax.batch.api.chunk.CheckpointAlgorithm;
-import javax.batch.api.chunk.ItemProcessor;
-import javax.batch.api.chunk.ItemReader;
-import javax.batch.api.chunk.ItemWriter;
-import javax.batch.api.listener.StepListener;
-import javax.batch.runtime.BatchStatus;
-import javax.batch.runtime.JobExecution;
-import javax.batch.runtime.context.JobContext;
-import javax.inject.Inject;
+import jakarta.batch.api.BatchProperty;
+import jakarta.batch.api.Batchlet;
+import jakarta.batch.api.Decider;
+import jakarta.batch.api.chunk.CheckpointAlgorithm;
+import jakarta.batch.api.chunk.ItemProcessor;
+import jakarta.batch.api.chunk.ItemReader;
+import jakarta.batch.api.chunk.ItemWriter;
+import jakarta.batch.api.listener.StepListener;
+import jakarta.batch.runtime.BatchStatus;
+import jakarta.batch.runtime.JobExecution;
+import jakarta.batch.runtime.context.JobContext;
+import jakarta.inject.Inject;
import org.junit.Test;
@@ -48,6 +48,7 @@ import static org.junit.Assert.assertEquals;
*
*
* @author Chris Schaefer
+ * @author Mahmoud Ben Hassine
* @since 3.0
*/
public class JobPropertyTests extends AbstractJsrTestCase {
@@ -75,7 +76,7 @@ public class JobPropertyTests extends AbstractJsrTestCase {
@Inject @BatchProperty String jobPropertyName2;
@Inject JobContext injectAnnotatedOnlyField;
@BatchProperty String batchAnnotatedOnlyField;
- @Inject javax.batch.runtime.context.StepContext stepContext;
+ @Inject jakarta.batch.runtime.context.StepContext stepContext;
@Override
public void open(Serializable serializable) throws Exception {
@@ -214,7 +215,7 @@ public class JobPropertyTests extends AbstractJsrTestCase {
@Inject @BatchProperty(name = "notDefinedAnnotationNamedProperty") String notDefinedAnnotationNamedProperty;
@Override
- public String decide(javax.batch.runtime.StepExecution[] executions) throws Exception {
+ public String decide(jakarta.batch.runtime.StepExecution[] executions) throws Exception {
org.springframework.util.Assert.isTrue("deciderPropertyValue1".equals(deciderPropertyName1), "The value of deciderPropertyValue1 does not equal deciderPropertyValue1");
org.springframework.util.Assert.isTrue("deciderPropertyValue2".equals(deciderPropertyName2), "The value of deciderPropertyValue2 does not equal deciderPropertyValue2");
org.springframework.util.Assert.isTrue("annotationNamedDeciderPropertyValue".equals(annotationNamedProperty), "The value of annotationNamedDeciderPropertyValue does not equal annotationNamedDeciderPropertyValue");
@@ -252,7 +253,7 @@ public class JobPropertyTests extends AbstractJsrTestCase {
@Inject @BatchProperty(name = "annotationNamedBatchletPropertyName") String annotationNamedProperty;
@Inject @BatchProperty String notDefinedProperty;
@Inject @BatchProperty(name = "notDefinedAnnotationNamedProperty") String notDefinedAnnotationNamedProperty;
- @Inject javax.batch.runtime.context.StepContext stepContext;
+ @Inject jakarta.batch.runtime.context.StepContext stepContext;
@Inject @BatchProperty(name = "infile.name") String infile;
@Inject @BatchProperty(name = "y") String y;
@Inject @BatchProperty(name = "x") String x;
diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/JsrBeanDefinitionDocumentReaderTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/JsrBeanDefinitionDocumentReaderTests.java
index 3d468033f..54c4e68a5 100644
--- a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/JsrBeanDefinitionDocumentReaderTests.java
+++ b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/JsrBeanDefinitionDocumentReaderTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013-2017 the original author or authors.
+ * Copyright 2013-2021 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.
@@ -18,8 +18,8 @@ package org.springframework.batch.core.jsr.configuration.xml;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
-import javax.batch.api.Batchlet;
-import javax.batch.runtime.JobExecution;
+import jakarta.batch.api.Batchlet;
+import jakarta.batch.runtime.JobExecution;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
@@ -47,6 +47,7 @@ import static org.junit.Assert.assertTrue;
*
*
* @author Chris Schaefer
+ * @author Mahmoud Ben Hassine
*/
public class JsrBeanDefinitionDocumentReaderTests extends AbstractJsrTestCase {
private static final String JOB_PARAMETERS_BEAN_DEFINITION_NAME = "jsr_jobParameters";
diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/JsrDecisionParsingTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/JsrDecisionParsingTests.java
index 075b60ceb..bb3804433 100644
--- a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/JsrDecisionParsingTests.java
+++ b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/JsrDecisionParsingTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013 the original author or authors.
+ * Copyright 2013-2021 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.
@@ -17,7 +17,7 @@ package org.springframework.batch.core.jsr.configuration.xml;
import static org.junit.Assert.assertEquals;
-import javax.batch.api.Decider;
+import jakarta.batch.api.Decider;
import org.junit.Test;
import org.junit.runner.RunWith;
@@ -50,7 +50,7 @@ public class JsrDecisionParsingTests {
public static class JsrDecider implements Decider {
@Override
- public String decide(javax.batch.runtime.StepExecution[] executions)
+ public String decide(jakarta.batch.runtime.StepExecution[] executions)
throws Exception {
return "next";
}
diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/PartitionParserTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/PartitionParserTests.java
index d214838ea..5ccdfab6e 100644
--- a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/PartitionParserTests.java
+++ b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/PartitionParserTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013-2020 the original author or authors.
+ * Copyright 2013-2021 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.
@@ -26,17 +26,17 @@ import java.util.Vector;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
-import javax.batch.api.BatchProperty;
-import javax.batch.api.Batchlet;
-import javax.batch.api.chunk.AbstractItemReader;
-import javax.batch.api.chunk.AbstractItemWriter;
-import javax.batch.api.partition.PartitionPlan;
-import javax.batch.api.partition.PartitionPlanImpl;
-import javax.batch.runtime.BatchStatus;
-import javax.batch.runtime.JobExecution;
-import javax.batch.runtime.context.JobContext;
-import javax.batch.runtime.context.StepContext;
-import javax.inject.Inject;
+import jakarta.batch.api.BatchProperty;
+import jakarta.batch.api.Batchlet;
+import jakarta.batch.api.chunk.AbstractItemReader;
+import jakarta.batch.api.chunk.AbstractItemWriter;
+import jakarta.batch.api.partition.PartitionPlan;
+import jakarta.batch.api.partition.PartitionPlanImpl;
+import jakarta.batch.runtime.BatchStatus;
+import jakarta.batch.runtime.JobExecution;
+import jakarta.batch.runtime.context.JobContext;
+import jakarta.batch.runtime.context.StepContext;
+import jakarta.inject.Inject;
import org.junit.Before;
import org.junit.Test;
@@ -174,7 +174,7 @@ public class PartitionParserTests extends AbstractJsrTestCase {
return count;
}
- public static class PartitionReducer implements javax.batch.api.partition.PartitionReducer {
+ public static class PartitionReducer implements jakarta.batch.api.partition.PartitionReducer {
public static String name;
@@ -208,7 +208,7 @@ public class PartitionParserTests extends AbstractJsrTestCase {
}
}
- public static class PartitionAnalyzer implements javax.batch.api.partition.PartitionAnalyzer {
+ public static class PartitionAnalyzer implements jakarta.batch.api.partition.PartitionAnalyzer {
public static String name;
@@ -235,7 +235,7 @@ public class PartitionParserTests extends AbstractJsrTestCase {
}
}
- public static class PartitionCollector implements javax.batch.api.partition.PartitionCollector {
+ public static class PartitionCollector implements jakarta.batch.api.partition.PartitionCollector {
protected static Set artifactNames = Collections.synchronizedSet(new HashSet<>());
@@ -250,7 +250,7 @@ public class PartitionParserTests extends AbstractJsrTestCase {
}
}
- public static class PropertyPartitionMapper implements javax.batch.api.partition.PartitionMapper {
+ public static class PropertyPartitionMapper implements jakarta.batch.api.partition.PartitionMapper {
@Override
public PartitionPlan mapPartitions() throws Exception {
@@ -271,7 +271,7 @@ public class PartitionParserTests extends AbstractJsrTestCase {
}
}
- public static class PartitionMapper implements javax.batch.api.partition.PartitionMapper {
+ public static class PartitionMapper implements jakarta.batch.api.partition.PartitionMapper {
public static String name;
diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/RetryListenerTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/RetryListenerTests.java
index 0a7097490..685696cac 100644
--- a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/RetryListenerTests.java
+++ b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/RetryListenerTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013 the original author or authors.
+ * Copyright 2013-2021 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.
@@ -18,13 +18,13 @@ package org.springframework.batch.core.jsr.configuration.xml;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;
-import javax.batch.api.chunk.ItemProcessor;
-import javax.batch.api.chunk.ItemReader;
-import javax.batch.api.chunk.ItemWriter;
-import javax.batch.api.chunk.listener.RetryProcessListener;
-import javax.batch.api.chunk.listener.RetryReadListener;
-import javax.batch.api.chunk.listener.RetryWriteListener;
-import javax.batch.operations.BatchRuntimeException;
+import jakarta.batch.api.chunk.ItemProcessor;
+import jakarta.batch.api.chunk.ItemReader;
+import jakarta.batch.api.chunk.ItemWriter;
+import jakarta.batch.api.chunk.listener.RetryProcessListener;
+import jakarta.batch.api.chunk.listener.RetryReadListener;
+import jakarta.batch.api.chunk.listener.RetryWriteListener;
+import jakarta.batch.operations.BatchRuntimeException;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.junit.Test;
@@ -47,6 +47,7 @@ import static org.junit.Assert.assertTrue;
*
*
* @author Chris Schaefer
+ * @author Mahmoud Ben Hassine
* @since 3.0
*/
public class RetryListenerTests {
diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/SimpleItemBasedJobParsingTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/SimpleItemBasedJobParsingTests.java
index 6f73ddd37..b81a04e5b 100644
--- a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/SimpleItemBasedJobParsingTests.java
+++ b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/SimpleItemBasedJobParsingTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013 the original author or authors.
+ * Copyright 2013-2021 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.
@@ -20,8 +20,8 @@ import static org.junit.Assert.assertEquals;
import java.io.Serializable;
import java.util.List;
-import javax.batch.api.chunk.CheckpointAlgorithm;
-import javax.batch.api.chunk.ItemWriter;
+import jakarta.batch.api.chunk.CheckpointAlgorithm;
+import jakarta.batch.api.chunk.ItemWriter;
import org.junit.Test;
import org.junit.runner.RunWith;
diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/SimpleJobParsingTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/SimpleJobParsingTests.java
index 764c9d060..7e598e1e5 100644
--- a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/SimpleJobParsingTests.java
+++ b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/SimpleJobParsingTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013 the original author or authors.
+ * Copyright 2013-2021 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.
@@ -18,7 +18,7 @@ package org.springframework.batch.core.jsr.configuration.xml;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
-import javax.batch.api.Batchlet;
+import jakarta.batch.api.Batchlet;
import org.junit.Test;
import org.junit.runner.RunWith;
diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/StepListenerParsingTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/StepListenerParsingTests.java
index 40471eb94..9aefe8a33 100644
--- a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/StepListenerParsingTests.java
+++ b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/StepListenerParsingTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013-2019 the original author or authors.
+ * Copyright 2013-2021 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.
@@ -17,7 +17,7 @@ package org.springframework.batch.core.jsr.configuration.xml;
import static org.junit.Assert.assertEquals;
-import javax.batch.api.listener.StepListener;
+import jakarta.batch.api.listener.StepListener;
import org.junit.Test;
import org.junit.runner.RunWith;
diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/ThreadLocalClassloaderBeanPostProcessorTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/ThreadLocalClassloaderBeanPostProcessorTests.java
index c7c9665bb..2f2d01c9a 100644
--- a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/ThreadLocalClassloaderBeanPostProcessorTests.java
+++ b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/ThreadLocalClassloaderBeanPostProcessorTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013 the original author or authors.
+ * Copyright 2013-2021 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.
@@ -18,8 +18,8 @@ package org.springframework.batch.core.jsr.configuration.xml;
import org.junit.Test;
import org.springframework.batch.core.jsr.AbstractJsrTestCase;
-import javax.batch.runtime.BatchStatus;
-import javax.batch.runtime.JobExecution;
+import jakarta.batch.runtime.BatchStatus;
+import jakarta.batch.runtime.JobExecution;
import static org.junit.Assert.assertEquals;
diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/ThreadLocalClassloaderBeanPostProcessorTestsBatchlet.java b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/ThreadLocalClassloaderBeanPostProcessorTestsBatchlet.java
index 944c36995..587008b32 100644
--- a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/ThreadLocalClassloaderBeanPostProcessorTestsBatchlet.java
+++ b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/configuration/xml/ThreadLocalClassloaderBeanPostProcessorTestsBatchlet.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013-2018 the original author or authors.
+ * Copyright 2013-2021 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.
@@ -15,11 +15,11 @@
*/
package org.springframework.batch.core.jsr.configuration.xml;
-import javax.batch.api.BatchProperty;
-import javax.batch.api.Batchlet;
-import javax.batch.runtime.context.JobContext;
-import javax.batch.runtime.context.StepContext;
-import javax.inject.Inject;
+import jakarta.batch.api.BatchProperty;
+import jakarta.batch.api.Batchlet;
+import jakarta.batch.runtime.context.JobContext;
+import jakarta.batch.runtime.context.StepContext;
+import jakarta.inject.Inject;
import org.springframework.util.Assert;
diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/job/flow/JsrFlowJobTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/job/flow/JsrFlowJobTests.java
index 821c27d12..996084fcd 100644
--- a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/job/flow/JsrFlowJobTests.java
+++ b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/job/flow/JsrFlowJobTests.java
@@ -50,7 +50,7 @@ import org.springframework.jdbc.datasource.embedded.EmbeddedDatabase;
import org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseBuilder;
import org.springframework.lang.Nullable;
-import javax.batch.api.Decider;
+import jakarta.batch.api.Decider;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
@@ -480,7 +480,7 @@ public class JsrFlowJobTests {
Decider decider = new Decider() {
@Override
- public String decide(javax.batch.runtime.StepExecution[] executions)
+ public String decide(jakarta.batch.runtime.StepExecution[] executions)
throws Exception {
assertNotNull(executions);
return "SWITCH";
@@ -733,7 +733,7 @@ public class JsrFlowJobTests {
public void execute(StepExecution stepExecution) throws JobInterruptedException {
stepExecution.setStatus(BatchStatus.COMPLETED);
try {
- stepExecution.setExitStatus(new ExitStatus(decider.decide(new javax.batch.runtime.StepExecution [] {new JsrStepExecution(stepExecution)})));
+ stepExecution.setExitStatus(new ExitStatus(decider.decide(new jakarta.batch.runtime.StepExecution [] {new JsrStepExecution(stepExecution)})));
} catch (Exception e) {
throw new RuntimeException(e);
}
diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/job/flow/support/state/JsrEndStateTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/job/flow/support/state/JsrEndStateTests.java
index f2d2f9d38..27c720453 100644
--- a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/job/flow/support/state/JsrEndStateTests.java
+++ b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/job/flow/support/state/JsrEndStateTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013 the original author or authors.
+ * Copyright 2013-2021 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.
@@ -17,9 +17,9 @@ package org.springframework.batch.core.jsr.job.flow.support.state;
import static org.junit.Assert.assertEquals;
-import javax.batch.api.AbstractBatchlet;
-import javax.batch.runtime.BatchStatus;
-import javax.batch.runtime.JobExecution;
+import jakarta.batch.api.AbstractBatchlet;
+import jakarta.batch.runtime.BatchStatus;
+import jakarta.batch.runtime.JobExecution;
import org.junit.Test;
@@ -29,6 +29,7 @@ import org.springframework.batch.core.jsr.AbstractJsrTestCase;
* Tests for the JSR-352 version of {@link JsrEndState}
*
* @author Michael Minella
+ * @author Mahmoud Ben Hassine
*/
public class JsrEndStateTests extends AbstractJsrTestCase {
diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/launch/JsrJobOperatorTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/launch/JsrJobOperatorTests.java
index 1e32b831a..3034764cd 100644
--- a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/launch/JsrJobOperatorTests.java
+++ b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/launch/JsrJobOperatorTests.java
@@ -21,17 +21,17 @@ import java.util.HashSet;
import java.util.List;
import java.util.Properties;
import java.util.Set;
-import javax.batch.api.AbstractBatchlet;
-import javax.batch.api.Batchlet;
-import javax.batch.operations.JobExecutionIsRunningException;
-import javax.batch.operations.JobOperator;
-import javax.batch.operations.JobRestartException;
-import javax.batch.operations.JobStartException;
-import javax.batch.operations.NoSuchJobException;
-import javax.batch.operations.NoSuchJobExecutionException;
-import javax.batch.operations.NoSuchJobInstanceException;
-import javax.batch.runtime.BatchRuntime;
-import javax.batch.runtime.BatchStatus;
+import jakarta.batch.api.AbstractBatchlet;
+import jakarta.batch.api.Batchlet;
+import jakarta.batch.operations.JobExecutionIsRunningException;
+import jakarta.batch.operations.JobOperator;
+import jakarta.batch.operations.JobRestartException;
+import jakarta.batch.operations.JobStartException;
+import jakarta.batch.operations.NoSuchJobException;
+import jakarta.batch.operations.NoSuchJobExecutionException;
+import jakarta.batch.operations.NoSuchJobInstanceException;
+import jakarta.batch.runtime.BatchRuntime;
+import jakarta.batch.runtime.BatchStatus;
import javax.sql.DataSource;
import org.junit.Before;
@@ -243,7 +243,7 @@ public class JsrJobOperatorTests extends AbstractJsrTestCase {
when(jobExplorer.getJobExecutions(jobInstance)).thenReturn(executions);
- List jobExecutions = jsrJobOperator.getJobExecutions(jobInstance);
+ List jobExecutions = jsrJobOperator.getJobExecutions(jobInstance);
assertEquals(1, jobExecutions.size());
assertEquals(2L, executions.get(0).getId().longValue());
}
@@ -279,7 +279,7 @@ public class JsrJobOperatorTests extends AbstractJsrTestCase {
when(jobExplorer.getJobExecution(5L)).thenReturn(execution);
when(jobExplorer.getJobInstance(1L)).thenReturn(instance);
- javax.batch.runtime.JobInstance jobInstance = jsrJobOperator.getJobInstance(5L);
+ jakarta.batch.runtime.JobInstance jobInstance = jsrJobOperator.getJobInstance(5L);
assertEquals(1L, jobInstance.getInstanceId());
assertEquals("my job", jobInstance.getJobName());
@@ -324,7 +324,7 @@ public class JsrJobOperatorTests extends AbstractJsrTestCase {
when(jobExplorer.getJobInstances("myJob", 0, 3)).thenReturn(instances);
- List jobInstances = jsrJobOperator.getJobInstances("myJob", 0, 3);
+ List jobInstances = jsrJobOperator.getJobInstances("myJob", 0, 3);
assertEquals(3, jobInstances.size());
assertEquals(1L, jobInstances.get(0).getInstanceId());
@@ -409,7 +409,7 @@ public class JsrJobOperatorTests extends AbstractJsrTestCase {
when(jobExplorer.getStepExecution(5L, 1L)).thenReturn(new StepExecution("step1", jobExecution, 1L));
when(jobExplorer.getStepExecution(5L, 2L)).thenReturn(new StepExecution("step2", jobExecution, 2L));
- List results = jsrJobOperator.getStepExecutions(5L);
+ List results = jsrJobOperator.getStepExecutions(5L);
assertEquals("step1", results.get(0).getStepName());
assertEquals("step2", results.get(1).getStepName());
@@ -435,7 +435,7 @@ public class JsrJobOperatorTests extends AbstractJsrTestCase {
when(jobExplorer.getStepExecution(5L, 1L)).thenReturn(new StepExecution("step1", jobExecution, 1L));
when(jobExplorer.getStepExecution(5L, 2L)).thenReturn(new StepExecution("step2", jobExecution, 2L));
- List results = jsrJobOperator.getStepExecutions(5L);
+ List results = jsrJobOperator.getStepExecutions(5L);
assertEquals("step1", results.get(0).getStepName());
assertEquals("step2", results.get(1).getStepName());
@@ -447,14 +447,14 @@ public class JsrJobOperatorTests extends AbstractJsrTestCase {
when(jobExplorer.getJobExecution(5L)).thenReturn(jobExecution);
- List results = jsrJobOperator.getStepExecutions(5L);
+ List results = jsrJobOperator.getStepExecutions(5L);
assertEquals(0, results.size());
}
@Test
public void testStartRoseyScenario() throws Exception {
- javax.batch.runtime.JobExecution execution = runJob("jsrJobOperatorTestJob", new Properties(), TIMEOUT);
+ jakarta.batch.runtime.JobExecution execution = runJob("jsrJobOperatorTestJob", new Properties(), TIMEOUT);
assertEquals(BatchStatus.COMPLETED, execution.getBatchStatus());
}
@@ -470,9 +470,9 @@ public class JsrJobOperatorTests extends AbstractJsrTestCase {
} catch (NoSuchJobException ignore) {
}
- javax.batch.runtime.JobExecution execution1 = runJob("jsrJobOperatorTestJob", new Properties(), TIMEOUT);
- javax.batch.runtime.JobExecution execution2 = runJob("jsrJobOperatorTestJob", new Properties(), TIMEOUT);
- javax.batch.runtime.JobExecution execution3 = runJob("jsrJobOperatorTestJob", new Properties(), TIMEOUT);
+ jakarta.batch.runtime.JobExecution execution1 = runJob("jsrJobOperatorTestJob", new Properties(), TIMEOUT);
+ jakarta.batch.runtime.JobExecution execution2 = runJob("jsrJobOperatorTestJob", new Properties(), TIMEOUT);
+ jakarta.batch.runtime.JobExecution execution3 = runJob("jsrJobOperatorTestJob", new Properties(), TIMEOUT);
assertEquals(BatchStatus.COMPLETED, execution1.getBatchStatus());
assertEquals(BatchStatus.COMPLETED, execution2.getBatchStatus());
@@ -485,7 +485,7 @@ public class JsrJobOperatorTests extends AbstractJsrTestCase {
@Test
public void testRestartRoseyScenario() throws Exception {
- javax.batch.runtime.JobExecution execution = runJob("jsrJobOperatorTestRestartJob", new Properties(), TIMEOUT);
+ jakarta.batch.runtime.JobExecution execution = runJob("jsrJobOperatorTestRestartJob", new Properties(), TIMEOUT);
assertEquals(BatchStatus.FAILED, execution.getBatchStatus());
@@ -496,7 +496,7 @@ public class JsrJobOperatorTests extends AbstractJsrTestCase {
@Test(expected = JobRestartException.class)
public void testNonRestartableJob() throws Exception {
- javax.batch.runtime.JobExecution jobExecutionStart = runJob("jsrJobOperatorTestNonRestartableJob", new Properties(), TIMEOUT);
+ jakarta.batch.runtime.JobExecution jobExecutionStart = runJob("jsrJobOperatorTestNonRestartableJob", new Properties(), TIMEOUT);
assertEquals(BatchStatus.FAILED, jobExecutionStart.getBatchStatus());
restartJob(jobExecutionStart.getExecutionId(), null, TIMEOUT);
@@ -505,7 +505,7 @@ public class JsrJobOperatorTests extends AbstractJsrTestCase {
@Test(expected = JobRestartException.class)
public void testRestartAbandoned() throws Exception {
jsrJobOperator = BatchRuntime.getJobOperator();
- javax.batch.runtime.JobExecution execution = runJob("jsrJobOperatorTestRestartAbandonJob", null, TIMEOUT);
+ jakarta.batch.runtime.JobExecution execution = runJob("jsrJobOperatorTestRestartAbandonJob", null, TIMEOUT);
assertEquals(BatchStatus.FAILED, execution.getBatchStatus());
@@ -616,7 +616,7 @@ public class JsrJobOperatorTests extends AbstractJsrTestCase {
@Test
public void testApplicationContextClosingAfterJobSuccessful() throws Exception {
for(int i = 0; i < 3; i++) {
- javax.batch.runtime.JobExecution execution = runJob("contextClosingTests", new Properties(), TIMEOUT);
+ jakarta.batch.runtime.JobExecution execution = runJob("contextClosingTests", new Properties(), TIMEOUT);
assertEquals(BatchStatus.COMPLETED, execution.getBatchStatus());
diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/partition/JsrPartitionHandlerTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/partition/JsrPartitionHandlerTests.java
index 804438dfc..e24019254 100644
--- a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/partition/JsrPartitionHandlerTests.java
+++ b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/partition/JsrPartitionHandlerTests.java
@@ -34,15 +34,15 @@ import org.springframework.jdbc.datasource.embedded.EmbeddedDatabase;
import org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseBuilder;
import org.springframework.util.StopWatch;
-import javax.batch.api.BatchProperty;
-import javax.batch.api.partition.PartitionAnalyzer;
-import javax.batch.api.partition.PartitionCollector;
-import javax.batch.api.partition.PartitionMapper;
-import javax.batch.api.partition.PartitionPlan;
-import javax.batch.api.partition.PartitionPlanImpl;
-import javax.batch.api.partition.PartitionReducer;
-import javax.batch.runtime.BatchStatus;
-import javax.inject.Inject;
+import jakarta.batch.api.BatchProperty;
+import jakarta.batch.api.partition.PartitionAnalyzer;
+import jakarta.batch.api.partition.PartitionCollector;
+import jakarta.batch.api.partition.PartitionMapper;
+import jakarta.batch.api.partition.PartitionPlan;
+import jakarta.batch.api.partition.PartitionPlanImpl;
+import jakarta.batch.api.partition.PartitionReducer;
+import jakarta.batch.runtime.BatchStatus;
+import jakarta.inject.Inject;
import java.io.Serializable;
import java.util.Collection;
import java.util.Properties;
@@ -261,7 +261,7 @@ public class JsrPartitionHandlerTests extends AbstractJsrTestCase {
@Test
public void testRestartNoOverride() throws Exception {
- javax.batch.runtime.JobExecution execution1 = runJob("jsrPartitionHandlerRestartWithOverrideJob", null, 1000000L);
+ jakarta.batch.runtime.JobExecution execution1 = runJob("jsrPartitionHandlerRestartWithOverrideJob", null, 1000000L);
assertEquals(BatchStatus.FAILED, execution1.getBatchStatus());
assertEquals(1, MyPartitionReducer.beginCount);
assertEquals(0, MyPartitionReducer.beforeCount);
@@ -272,7 +272,7 @@ public class JsrPartitionHandlerTests extends AbstractJsrTestCase {
MyPartitionReducer.reset();
CountingPartitionCollector.reset();
- javax.batch.runtime.JobExecution execution2 = restartJob(execution1.getExecutionId(), null, 1000000L);
+ jakarta.batch.runtime.JobExecution execution2 = restartJob(execution1.getExecutionId(), null, 1000000L);
assertEquals(BatchStatus.COMPLETED, execution2.getBatchStatus());
assertEquals(1, MyPartitionReducer.beginCount);
assertEquals(1, MyPartitionReducer.beforeCount);
@@ -287,7 +287,7 @@ public class JsrPartitionHandlerTests extends AbstractJsrTestCase {
Properties jobParameters = new Properties();
jobParameters.put("mapper.override", "true");
- javax.batch.runtime.JobExecution execution1 = runJob("jsrPartitionHandlerRestartWithOverrideJob", jobParameters, 1000000L);
+ jakarta.batch.runtime.JobExecution execution1 = runJob("jsrPartitionHandlerRestartWithOverrideJob", jobParameters, 1000000L);
assertEquals(BatchStatus.FAILED, execution1.getBatchStatus());
assertEquals(1, MyPartitionReducer.beginCount);
assertEquals(0, MyPartitionReducer.beforeCount);
@@ -298,7 +298,7 @@ public class JsrPartitionHandlerTests extends AbstractJsrTestCase {
MyPartitionReducer.reset();
CountingPartitionCollector.reset();
- javax.batch.runtime.JobExecution execution2 = restartJob(execution1.getExecutionId(), jobParameters, 1000000L);
+ jakarta.batch.runtime.JobExecution execution2 = restartJob(execution1.getExecutionId(), jobParameters, 1000000L);
assertEquals(BatchStatus.COMPLETED, execution2.getBatchStatus());
assertEquals(1, MyPartitionReducer.beginCount);
assertEquals(1, MyPartitionReducer.beforeCount);
diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/partition/PartitionCollectorAdapterTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/partition/PartitionCollectorAdapterTests.java
index 6f95a5e05..438f2efab 100644
--- a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/partition/PartitionCollectorAdapterTests.java
+++ b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/partition/PartitionCollectorAdapterTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013 the original author or authors.
+ * Copyright 2013-2021 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.
@@ -22,7 +22,7 @@ import java.util.Queue;
import java.util.concurrent.ConcurrentLinkedQueue;
import java.util.concurrent.locks.ReentrantLock;
-import javax.batch.api.partition.PartitionCollector;
+import jakarta.batch.api.partition.PartitionCollector;
import org.junit.Test;
import org.springframework.batch.core.scope.context.ChunkContext;
diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/step/DecisionStepTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/step/DecisionStepTests.java
index 8a8903283..f8e28203e 100644
--- a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/step/DecisionStepTests.java
+++ b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/step/DecisionStepTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013-2020 the original author or authors.
+ * Copyright 2013-2021 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.
@@ -18,11 +18,11 @@ package org.springframework.batch.core.jsr.step;
import java.util.List;
import java.util.Properties;
-import javax.batch.api.Decider;
-import javax.batch.runtime.BatchRuntime;
-import javax.batch.runtime.BatchStatus;
-import javax.batch.runtime.JobExecution;
-import javax.batch.runtime.StepExecution;
+import jakarta.batch.api.Decider;
+import jakarta.batch.runtime.BatchRuntime;
+import jakarta.batch.runtime.BatchStatus;
+import jakarta.batch.runtime.JobExecution;
+import jakarta.batch.runtime.StepExecution;
import org.junit.Test;
diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/step/SplitTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/step/SplitTests.java
index 5e917de0f..8fe971e91 100644
--- a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/step/SplitTests.java
+++ b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/step/SplitTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2020 the original author or authors.
+ * Copyright 2020-2021 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.
@@ -22,15 +22,15 @@ import java.util.List;
import java.util.Properties;
import java.util.Set;
-import javax.batch.api.AbstractBatchlet;
-import javax.batch.api.Decider;
-import javax.batch.operations.JobOperator;
-import javax.batch.runtime.BatchRuntime;
-import javax.batch.runtime.BatchStatus;
-import javax.batch.runtime.JobExecution;
-import javax.batch.runtime.StepExecution;
-import javax.batch.runtime.context.JobContext;
-import javax.inject.Inject;
+import jakarta.batch.api.AbstractBatchlet;
+import jakarta.batch.api.Decider;
+import jakarta.batch.operations.JobOperator;
+import jakarta.batch.runtime.BatchRuntime;
+import jakarta.batch.runtime.BatchStatus;
+import jakarta.batch.runtime.JobExecution;
+import jakarta.batch.runtime.StepExecution;
+import jakarta.batch.runtime.context.JobContext;
+import jakarta.inject.Inject;
import org.junit.Test;
diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/step/batchlet/BatchletAdapterTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/step/batchlet/BatchletAdapterTests.java
index 8d8a754ca..31de2ac5d 100644
--- a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/step/batchlet/BatchletAdapterTests.java
+++ b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/step/batchlet/BatchletAdapterTests.java
@@ -20,8 +20,8 @@ import static org.mockito.Mockito.doThrow;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
-import javax.batch.api.Batchlet;
-import javax.batch.operations.BatchRuntimeException;
+import jakarta.batch.api.Batchlet;
+import jakarta.batch.operations.BatchRuntimeException;
import org.junit.Before;
import org.junit.Rule;
diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/step/batchlet/BatchletSupport.java b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/step/batchlet/BatchletSupport.java
index 3e0b40f1a..7f7ccf341 100644
--- a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/step/batchlet/BatchletSupport.java
+++ b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/step/batchlet/BatchletSupport.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013 the original author or authors.
+ * Copyright 2013-2021 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.
@@ -15,7 +15,7 @@
*/
package org.springframework.batch.core.jsr.step.batchlet;
-import javax.batch.api.Batchlet;
+import jakarta.batch.api.Batchlet;
public class BatchletSupport implements Batchlet {
diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/step/batchlet/FailingBatchlet.java b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/step/batchlet/FailingBatchlet.java
index ca7273f52..0cdf88109 100644
--- a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/step/batchlet/FailingBatchlet.java
+++ b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/step/batchlet/FailingBatchlet.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013 the original author or authors.
+ * Copyright 2013-2021 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.
@@ -15,7 +15,7 @@
*/
package org.springframework.batch.core.jsr.step.batchlet;
-import javax.batch.api.Batchlet;
+import jakarta.batch.api.Batchlet;
/**
*
@@ -23,6 +23,7 @@ import javax.batch.api.Batchlet;
*
*
* @author Chris Schaefer
+ * @author Mahmoud Ben Hassine
*/
public class FailingBatchlet implements Batchlet {
@Override
diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/step/batchlet/RestartBatchlet.java b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/step/batchlet/RestartBatchlet.java
index 85895f06f..f2d60a145 100644
--- a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/step/batchlet/RestartBatchlet.java
+++ b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/step/batchlet/RestartBatchlet.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013 the original author or authors.
+ * Copyright 2013-2021 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.
@@ -15,7 +15,7 @@
*/
package org.springframework.batch.core.jsr.step.batchlet;
-import javax.batch.api.Batchlet;
+import jakarta.batch.api.Batchlet;
public class RestartBatchlet implements Batchlet {
diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/step/listener/ExitStatusSettingStepListener.java b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/step/listener/ExitStatusSettingStepListener.java
index de9c372ee..12522900f 100644
--- a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/step/listener/ExitStatusSettingStepListener.java
+++ b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/step/listener/ExitStatusSettingStepListener.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2014 the original author or authors.
+ * Copyright 2014-2021 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.
@@ -15,10 +15,10 @@
*/
package org.springframework.batch.core.jsr.step.listener;
-import javax.batch.api.BatchProperty;
-import javax.batch.api.listener.StepListener;
-import javax.batch.runtime.context.JobContext;
-import javax.inject.Inject;
+import jakarta.batch.api.BatchProperty;
+import jakarta.batch.api.listener.StepListener;
+import jakarta.batch.runtime.context.JobContext;
+import jakarta.inject.Inject;
/**
*
@@ -27,6 +27,7 @@ import javax.inject.Inject;
*
*
* @author Chris Schaefer
+ * @author Mahmoud Ben Hassine
* @since 3.0
*/
public class ExitStatusSettingStepListener implements StepListener {
diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/test/ldif/LdifReaderTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/test/ldif/LdifReaderTests.java
index ac6370dbb..eb4cd82f6 100644
--- a/spring-batch-core/src/test/java/org/springframework/batch/core/test/ldif/LdifReaderTests.java
+++ b/spring-batch-core/src/test/java/org/springframework/batch/core/test/ldif/LdifReaderTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2005-2014 the original author or authors.
+ * Copyright 2005-2021 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.
@@ -23,6 +23,7 @@ import java.io.FileReader;
import java.net.MalformedURLException;
import org.junit.Before;
+import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.batch.core.ExitStatus;
@@ -39,6 +40,7 @@ import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.util.Assert;
+@Ignore
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = {"/simple-job-launcher-context.xml", "/applicationContext-test1.xml"})
public class LdifReaderTests {
diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/test/ldif/MappingLdifReaderTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/test/ldif/MappingLdifReaderTests.java
index ac625c70d..4ac375378 100644
--- a/spring-batch-core/src/test/java/org/springframework/batch/core/test/ldif/MappingLdifReaderTests.java
+++ b/spring-batch-core/src/test/java/org/springframework/batch/core/test/ldif/MappingLdifReaderTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2005-2014 the original author or authors.
+ * Copyright 2005-2021 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.
@@ -22,6 +22,7 @@ import java.io.InputStreamReader;
import java.net.MalformedURLException;
import org.junit.Before;
+import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.slf4j.Logger;
@@ -41,6 +42,7 @@ import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.util.Assert;
+@Ignore
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = {"/simple-job-launcher-context.xml", "/applicationContext-test2.xml"})
public class MappingLdifReaderTests {
diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/test/ldif/builder/LdifReaderBuilderTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/test/ldif/builder/LdifReaderBuilderTests.java
index 5f9abe1b8..84b11cb12 100644
--- a/spring-batch-core/src/test/java/org/springframework/batch/core/test/ldif/builder/LdifReaderBuilderTests.java
+++ b/spring-batch-core/src/test/java/org/springframework/batch/core/test/ldif/builder/LdifReaderBuilderTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2017 the original author or authors.
+ * Copyright 2017-2021 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.
@@ -17,6 +17,7 @@
package org.springframework.batch.core.test.ldif.builder;
import org.junit.After;
+import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
@@ -37,7 +38,9 @@ import static org.junit.Assert.fail;
/**
* @author Glenn Renfro
+ * @author Mahmoud Ben Hassine
*/
+@Ignore
@RunWith(SpringRunner.class)
public class LdifReaderBuilderTests {
diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/test/ldif/builder/MappingLdifReaderBuilderTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/test/ldif/builder/MappingLdifReaderBuilderTests.java
index aef6c5bb1..b54a0bfc5 100644
--- a/spring-batch-core/src/test/java/org/springframework/batch/core/test/ldif/builder/MappingLdifReaderBuilderTests.java
+++ b/spring-batch-core/src/test/java/org/springframework/batch/core/test/ldif/builder/MappingLdifReaderBuilderTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2017-2019 the original author or authors.
+ * Copyright 2017-2021 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.
@@ -17,6 +17,7 @@
package org.springframework.batch.core.test.ldif.builder;
import org.junit.After;
+import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
@@ -39,7 +40,9 @@ import static org.junit.Assert.fail;
/**
* @author Glenn Renfro
+ * @author Mahmoud Ben Hassine
*/
+@Ignore
@RunWith(SpringRunner.class)
public class MappingLdifReaderBuilderTests {
@Autowired
diff --git a/spring-batch-docs/src/main/asciidoc/jsr-352.adoc b/spring-batch-docs/src/main/asciidoc/jsr-352.adoc
index 56c5f86cc..53b46da80 100644
--- a/spring-batch-docs/src/main/asciidoc/jsr-352.adoc
+++ b/spring-batch-docs/src/main/asciidoc/jsr-352.adoc
@@ -25,7 +25,7 @@ both have readers, processors, writers, and listeners. However, their interacti
For example, the `org.springframework.batch.core.SkipListener#onSkipInWrite(S item, Throwable t)`
within Spring Batch receives two parameters: the item that was skipped and the Exception that caused the
skip. The JSR-352 version of the same method
-(`javax.batch.api.chunk.listener.SkipWriteListener#onSkipWriteItem(List<Object> items, Exception ex)`)
+(`jakarta.batch.api.chunk.listener.SkipWriteListener#onSkipWriteItem(List<Object> items, Exception ex)`)
also receives two parameters. However the first one is a `List` of all the items
within the current chunk with the second being the `Exception` that caused the skip.
Because of these differences, it is important to note that there are two paths to execute a job within
@@ -197,7 +197,7 @@ batch job in XML:
http://xmlns.jcp.org/xml/ns/javaee
https://xmlns.jcp.org/xml/ns/javaee/jobXML_1_0.xsd">
-
+
@@ -293,7 +293,7 @@ configuration in the JSL. Batch properties are configured at each level in the f
are required by the spec). As defined by JSR-352, fields for properties must be String typed. Any type
conversion is up to the implementing developer to perform.
-An `javax.batch.api.chunk.ItemReader` artifact could be configured with a
+An `jakarta.batch.api.chunk.ItemReader` artifact could be configured with a
properties block such as the one described above and accessed as such:
@@ -344,9 +344,9 @@ used, which are separated by a ';'.
JSR-352 provides the same two basic processing models that Spring Batch does:
-* Item based processing - Using an `javax.batch.api.chunk.ItemReader`, an optional
-`javax.batch.api.chunk.ItemProcessor`, and an `javax.batch.api.chunk.ItemWriter`.
-* Task based processing - Using a `javax.batch.api.Batchlet`
+* Item based processing - Using an `jakarta.batch.api.chunk.ItemReader`, an optional
+`jakarta.batch.api.chunk.ItemProcessor`, and an `jakarta.batch.api.chunk.ItemWriter`.
+* Task based processing - Using a `jakarta.batch.api.Batchlet`
implementation. This processing model is the same as the
`org.springframework.batch.core.step.tasklet.Tasklet` based processing
currently available.
@@ -384,7 +384,7 @@ then regardless of what the `item-count` is configured to be.
JSR-352 calls the process around the commit interval within a step "checkpointing".
Item-based checkpointing is one approach as mentioned above. However, this is not robust
enough in many cases. Because of this, the spec allows for the implementation of a custom
-checkpointing algorithm by implementing the `javax.batch.api.chunk.CheckpointAlgorithm`
+checkpointing algorithm by implementing the `jakarta.batch.api.chunk.CheckpointAlgorithm`
interface. This functionality is functionally the same as Spring Batch's custom completion
policy. To use an implementation of `CheckpointAlgorithm`, configure your step with the
custom `checkpoint-policy` as shown below where `fooCheckpointer` refers to an
@@ -410,9 +410,9 @@ implementation of `CheckpointAlgorithm`.
=== Running a job
The entrance to executing a JSR-352 based job is through the
-`javax.batch.operations.JobOperator`. Spring Batch provides its own implementation of
+`jakarta.batch.operations.JobOperator`. Spring Batch provides its own implementation of
this interface (`org.springframework.batch.core.jsr.launch.JsrJobOperator`). This
-implementation is loaded via the `javax.batch.runtime.BatchRuntime`. Launching a
+implementation is loaded via the `jakarta.batch.runtime.BatchRuntime`. Launching a
JSR-352 based batch job is implemented as follows:
@@ -455,8 +455,8 @@ restart a job, a call to
=== Contexts
JSR-352 defines two context objects that are used to interact with the meta-data of a job or step from
-within a batch artifact: `javax.batch.runtime.context.JobContext` and
-`javax.batch.runtime.context.StepContext`. Both of these are available in any step
+within a batch artifact: `jakarta.batch.runtime.context.JobContext` and
+`jakarta.batch.runtime.context.StepContext`. Both of these are available in any step
level artifact (`Batchlet`, `ItemReader`, etc) with the
`JobContext` being available to job level artifacts as well
(`JobListener` for example).
@@ -563,14 +563,14 @@ it's own set of properties as provided by the JSL or the
* `PartitionPlan` - With Spring Batch's partitioning, an
`ExecutionContext` is provided for each partition. With JSR-352, a
-single `javax.batch.api.partition.PartitionPlan` is provided with an
+single `jakarta.batch.api.partition.PartitionPlan` is provided with an
array of `Properties` providing the meta-data for each partition.
* `PartitionMapper` - JSR-352 provides two ways to generate partition
meta-data. One is via the JSL (partition properties). The second is via an implementation
-of the `javax.batch.api.partition.PartitionMapper` interface.
+of the `jakarta.batch.api.partition.PartitionMapper` interface.
Functionally, this interface is similar to the
`org.springframework.batch.core.partition.support.Partitioner`
interface provided by Spring Batch in that it provides a way to programmatically generate
@@ -598,12 +598,12 @@ errors occur and to dynamically set the exit status. These components include t
|===============
|__Artifact Interface__|__Description__
-|`javax.batch.api.partition.PartitionCollector`|Provides a way for worker steps to send information back to the
+|`jakarta.batch.api.partition.PartitionCollector`|Provides a way for worker steps to send information back to the
manager. There is one instance per worker thread.
-|`javax.batch.api.partition.PartitionAnalyzer`|End point that receives the information collected by the
+|`jakarta.batch.api.partition.PartitionAnalyzer`|End point that receives the information collected by the
`PartitionCollector` as well as the resulting
statuses from a completed partition.
-|`javax.batch.api.partition.PartitionReducer`|Provides the ability to provide compensating logic for a partitioned
+|`jakarta.batch.api.partition.PartitionReducer`|Provides the ability to provide compensating logic for a partitioned
step.
|===============
diff --git a/spring-batch-infrastructure/pom.xml b/spring-batch-infrastructure/pom.xml
index d5dda0941..5cff94a4d 100644
--- a/spring-batch-infrastructure/pom.xml
+++ b/spring-batch-infrastructure/pom.xml
@@ -97,26 +97,32 @@
org.hibernate
- hibernate-core
- ${hibernate-core.version}
+ hibernate-core-jakarta
+ ${hibernate-core-jakarta.version}
true
- javax.mail
- javax.mail-api
- ${javax.mail-api.version}
+ jakarta.mail
+ jakarta.mail-api
+ ${jakarta.mail-api.version}
true
- javax.jms
- javax.jms-api
- ${javax.jms-api.version}
+ jakarta.jms
+ jakarta.jms-api
+ ${jakarta.jms-api.version}
true
- javax.batch
- javax.batch-api
- ${javax.batch-api.version}
+ jakarta.persistence
+ jakarta.persistence-api
+ ${jakarta.persistence-api.version}
+ true
+
+
+ jakarta.batch
+ jakarta.batch-api
+ ${jakarta.batch-api.version}
true
@@ -168,9 +174,9 @@
true
- javax.validation
- validation-api
- ${validation-api.version}
+ jakarta.validation
+ jakarta.validation-api
+ ${jakarta.validation-api.version}
true
@@ -267,20 +273,20 @@
org.apache.activemq
- activemq-broker
- ${activemq.version}
+ artemis-server
+ ${artemis.version}
test
org.apache.activemq
- activemq-kahadb-store
- ${activemq.version}
+ artemis-jakarta-client
+ ${artemis.version}
test
- javax.xml.bind
- jaxb-api
- ${jaxb-api.version}
+ jakarta.xml.bind
+ jakarta.xml.bind-api
+ ${jakarta.xml.bind-api.version}
test
@@ -319,12 +325,6 @@
${log4j.version}
test
-
- com.sun.mail
- javax.mail
- ${javax.mail-api.version}
- test
-
org.hibernate.validator
hibernate-validator
@@ -332,9 +332,9 @@
test
- org.glassfish
- javax.el
- ${javax.el.version}
+ jakarta.el
+ jakarta.el-api
+ ${jakarta.el-api.version}
test
@@ -343,6 +343,18 @@
${woodstox-core.version}
test
+
+ org.glassfish
+ jakarta.el
+ ${jakarta.el.version}
+ test
+
+
+ com.sun.mail
+ jakarta.mail
+ ${jakarta.mail.version}
+ test
+
diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/JpaCursorItemReader.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/JpaCursorItemReader.java
index 24afe03e3..2f300c2e7 100644
--- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/JpaCursorItemReader.java
+++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/JpaCursorItemReader.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2020 the original author or authors.
+ * Copyright 2020-2021 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.
@@ -18,9 +18,9 @@ package org.springframework.batch.item.database;
import java.util.Iterator;
import java.util.Map;
-import javax.persistence.EntityManager;
-import javax.persistence.EntityManagerFactory;
-import javax.persistence.Query;
+import jakarta.persistence.EntityManager;
+import jakarta.persistence.EntityManagerFactory;
+import jakarta.persistence.Query;
import org.springframework.batch.item.ExecutionContext;
import org.springframework.batch.item.ItemStreamException;
diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/JpaItemWriter.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/JpaItemWriter.java
index aabadceb4..5a02cbe52 100644
--- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/JpaItemWriter.java
+++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/JpaItemWriter.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006-2013 the original author or authors.
+ * Copyright 2006-2021 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.
@@ -24,8 +24,8 @@ import org.springframework.dao.DataAccessResourceFailureException;
import org.springframework.orm.jpa.EntityManagerFactoryUtils;
import org.springframework.util.Assert;
-import javax.persistence.EntityManager;
-import javax.persistence.EntityManagerFactory;
+import jakarta.persistence.EntityManager;
+import jakarta.persistence.EntityManagerFactory;
import java.util.List;
/**
@@ -36,13 +36,14 @@ import java.util.List;
* It is required that {@link #write(List)} is called inside a transaction.
*
* The reader must be configured with an
- * {@link javax.persistence.EntityManagerFactory} that is capable of
+ * {@link jakarta.persistence.EntityManagerFactory} that is capable of
* participating in Spring managed transactions.
*
* The writer is thread-safe after its properties are set (normal singleton
* behaviour), so it can be used to write in multiple concurrent transactions.
*
* @author Thomas Risberg
+ * @author Mahmoud Ben Hassine
*
*/
public class JpaItemWriter implements ItemWriter, InitializingBean {
diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/JpaPagingItemReader.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/JpaPagingItemReader.java
index e346261ac..0bf649a10 100644
--- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/JpaPagingItemReader.java
+++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/JpaPagingItemReader.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006-2013 the original author or authors.
+ * Copyright 2006-2021 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.
@@ -21,10 +21,10 @@ import java.util.List;
import java.util.Map;
import java.util.concurrent.CopyOnWriteArrayList;
-import javax.persistence.EntityManager;
-import javax.persistence.EntityManagerFactory;
-import javax.persistence.EntityTransaction;
-import javax.persistence.Query;
+import jakarta.persistence.EntityManager;
+import jakarta.persistence.EntityManagerFactory;
+import jakarta.persistence.EntityTransaction;
+import jakarta.persistence.Query;
import org.springframework.batch.item.ExecutionContext;
import org.springframework.batch.item.database.orm.JpaQueryProvider;
@@ -65,7 +65,7 @@ import org.springframework.util.ClassUtils;
*
*
* The reader must be configured with an
- * {@link javax.persistence.EntityManagerFactory}. All entity access is
+ * {@link jakarta.persistence.EntityManagerFactory}. All entity access is
* performed within a new transaction, independent of any existing Spring
* managed transactions.
*
@@ -81,6 +81,7 @@ import org.springframework.util.ClassUtils;
* @author Thomas Risberg
* @author Dave Syer
* @author Will Schipp
+ * @author Mahmoud Ben Hassine
* @since 2.0
*/
public class JpaPagingItemReader extends AbstractPagingItemReader {
diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/builder/JpaCursorItemReaderBuilder.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/builder/JpaCursorItemReaderBuilder.java
index 0a143d4f7..a3ec3d343 100644
--- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/builder/JpaCursorItemReaderBuilder.java
+++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/builder/JpaCursorItemReaderBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2020 the original author or authors.
+ * Copyright 2020-2021 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.
@@ -17,7 +17,7 @@ package org.springframework.batch.item.database.builder;
import java.util.Map;
-import javax.persistence.EntityManagerFactory;
+import jakarta.persistence.EntityManagerFactory;
import org.springframework.batch.item.ExecutionContext;
import org.springframework.batch.item.ItemStreamSupport;
@@ -145,7 +145,7 @@ public class JpaCursorItemReaderBuilder {
* {@link #queryString}.
*
* @param entityManagerFactory {@link EntityManagerFactory} used to create
- * {@link javax.persistence.EntityManager}
+ * {@link jakarta.persistence.EntityManager}
* @return this instance for method chaining
*/
public JpaCursorItemReaderBuilder entityManagerFactory(EntityManagerFactory entityManagerFactory) {
diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/builder/JpaItemWriterBuilder.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/builder/JpaItemWriterBuilder.java
index e4869d6b9..5e1fc699a 100644
--- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/builder/JpaItemWriterBuilder.java
+++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/builder/JpaItemWriterBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2018-2020 the original author or authors.
+ * Copyright 2018-2021 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.
@@ -15,7 +15,7 @@
*/
package org.springframework.batch.item.database.builder;
-import javax.persistence.EntityManagerFactory;
+import jakarta.persistence.EntityManagerFactory;
import org.springframework.batch.item.database.JpaItemWriter;
import org.springframework.util.Assert;
diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/builder/JpaPagingItemReaderBuilder.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/builder/JpaPagingItemReaderBuilder.java
index 22393fcfc..254b2b3ef 100644
--- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/builder/JpaPagingItemReaderBuilder.java
+++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/builder/JpaPagingItemReaderBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2017 the original author or authors.
+ * Copyright 2017-2021 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.
@@ -16,7 +16,7 @@
package org.springframework.batch.item.database.builder;
import java.util.Map;
-import javax.persistence.EntityManagerFactory;
+import jakarta.persistence.EntityManagerFactory;
import org.springframework.batch.item.database.JpaPagingItemReader;
import org.springframework.batch.item.database.orm.JpaQueryProvider;
@@ -184,7 +184,7 @@ public class JpaPagingItemReaderBuilder {
* {@link #queryString}.
*
* @param entityManagerFactory {@link EntityManagerFactory} used to create
- * {@link javax.persistence.EntityManager}
+ * {@link jakarta.persistence.EntityManager}
* @return this instance for method chaining
*/
public JpaPagingItemReaderBuilder entityManagerFactory(EntityManagerFactory entityManagerFactory) {
diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/orm/AbstractJpaQueryProvider.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/orm/AbstractJpaQueryProvider.java
index 1664ccc6e..75edf736d 100644
--- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/orm/AbstractJpaQueryProvider.java
+++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/orm/AbstractJpaQueryProvider.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006-2013 the original author or authors.
+ * Copyright 2006-2021 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.
@@ -16,8 +16,8 @@
package org.springframework.batch.item.database.orm;
-import javax.persistence.EntityManager;
-import javax.persistence.Query;
+import jakarta.persistence.EntityManager;
+import jakarta.persistence.Query;
import org.springframework.beans.factory.InitializingBean;
@@ -29,6 +29,7 @@ import org.springframework.beans.factory.InitializingBean;
*
* @author Anatoly Polinsky
* @author Dave Syer
+ * @author Mahmoud Ben Hassine
*
* @since 2.1
*/
diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/orm/JpaNamedQueryProvider.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/orm/JpaNamedQueryProvider.java
index 3981de2bd..c91ed17c4 100644
--- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/orm/JpaNamedQueryProvider.java
+++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/orm/JpaNamedQueryProvider.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2020 the original author or authors.
+ * Copyright 2020-2021 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.
@@ -15,7 +15,7 @@
*/
package org.springframework.batch.item.database.orm;
-import javax.persistence.Query;
+import jakarta.persistence.Query;
import org.springframework.util.Assert;
import org.springframework.util.StringUtils;
diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/orm/JpaNativeQueryProvider.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/orm/JpaNativeQueryProvider.java
index c9501d408..9c6a2f76a 100644
--- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/orm/JpaNativeQueryProvider.java
+++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/orm/JpaNativeQueryProvider.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006-2008 the original author or authors.
+ * Copyright 2006-2021 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.
@@ -16,7 +16,7 @@
package org.springframework.batch.item.database.orm;
-import javax.persistence.Query;
+import jakarta.persistence.Query;
import org.springframework.util.Assert;
import org.springframework.util.StringUtils;
@@ -29,6 +29,7 @@ import org.springframework.util.StringUtils;
*
*
* @author Anatoly Polinsky
+ * @author Mahmoud Ben Hassine
*
* @param entity returned by executing the query
*/
diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/orm/JpaQueryProvider.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/orm/JpaQueryProvider.java
index b23e8d848..dc6acdca0 100644
--- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/orm/JpaQueryProvider.java
+++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/orm/JpaQueryProvider.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006-2008 the original author or authors.
+ * Copyright 2006-2021 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.
@@ -16,8 +16,8 @@
package org.springframework.batch.item.database.orm;
-import javax.persistence.EntityManager;
-import javax.persistence.Query;
+import jakarta.persistence.EntityManager;
+import jakarta.persistence.Query;
import org.springframework.batch.item.ItemReader;
@@ -27,6 +27,7 @@ import org.springframework.batch.item.ItemReader;
*
* @author Anatoly Polinsky
* @author Dave Syer
+ * @author Mahmoud Ben Hassine
* @since 2.1
*
*/
diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/jms/JmsItemReader.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/jms/JmsItemReader.java
index 9414b4e72..bd1c94e95 100644
--- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/jms/JmsItemReader.java
+++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/jms/JmsItemReader.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006-2019 the original author or authors.
+ * Copyright 2006-2021 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.
@@ -25,7 +25,7 @@ import org.springframework.jms.core.JmsTemplate;
import org.springframework.lang.Nullable;
import org.springframework.util.Assert;
-import javax.jms.Message;
+import jakarta.jms.Message;
/**
* An {@link ItemReader} for JMS using a {@link JmsTemplate}. The template
@@ -37,6 +37,7 @@ import javax.jms.Message;
* singleton behavior).
*
* @author Dave Syer
+ * @author Mahmoud Ben Hassine
*
*/
public class JmsItemReader implements ItemReader, InitializingBean {
diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/jms/JmsMethodArgumentsKeyGenerator.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/jms/JmsMethodArgumentsKeyGenerator.java
index 86040011c..6da0ce9e4 100644
--- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/jms/JmsMethodArgumentsKeyGenerator.java
+++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/jms/JmsMethodArgumentsKeyGenerator.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006-2007 the original author or authors.
+ * Copyright 2006-2021 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.
@@ -16,8 +16,8 @@
package org.springframework.batch.item.jms;
-import javax.jms.JMSException;
-import javax.jms.Message;
+import jakarta.jms.JMSException;
+import jakarta.jms.Message;
import org.springframework.batch.item.UnexpectedInputException;
import org.springframework.retry.interceptor.MethodArgumentsKeyGenerator;
@@ -26,6 +26,7 @@ import org.springframework.retry.interceptor.MethodArgumentsKeyGenerator;
* A {@link MethodArgumentsKeyGenerator} for JMS
*
* @author Dave Syer
+ * @author Mahmoud Ben Hassine
*
*/
public class JmsMethodArgumentsKeyGenerator implements MethodArgumentsKeyGenerator {
diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/jms/JmsNewMethodArgumentsIdentifier.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/jms/JmsNewMethodArgumentsIdentifier.java
index ad564d6e0..55d526d31 100644
--- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/jms/JmsNewMethodArgumentsIdentifier.java
+++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/jms/JmsNewMethodArgumentsIdentifier.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006-2007 the original author or authors.
+ * Copyright 2006-2021 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.
@@ -16,8 +16,8 @@
package org.springframework.batch.item.jms;
-import javax.jms.JMSException;
-import javax.jms.Message;
+import jakarta.jms.JMSException;
+import jakarta.jms.Message;
import org.springframework.batch.item.UnexpectedInputException;
import org.springframework.retry.interceptor.NewMethodArgumentsIdentifier;
@@ -27,6 +27,7 @@ import org.springframework.retry.interceptor.NewMethodArgumentsIdentifier;
* the arguments and checks its delivery status.
*
* @author Dave Syer
+ * @author Mahmoud Ben Hassine
*
*/
public class JmsNewMethodArgumentsIdentifier implements NewMethodArgumentsIdentifier {
diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/jms/builder/JmsItemReaderBuilder.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/jms/builder/JmsItemReaderBuilder.java
index 019ecf4e5..1278c15a8 100644
--- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/jms/builder/JmsItemReaderBuilder.java
+++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/jms/builder/JmsItemReaderBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2017 the original author or authors.
+ * Copyright 2017-2021 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.
@@ -16,7 +16,7 @@
package org.springframework.batch.item.jms.builder;
-import javax.jms.Message;
+import jakarta.jms.Message;
import org.springframework.batch.item.jms.JmsItemReader;
import org.springframework.jms.core.JmsOperations;
@@ -26,6 +26,7 @@ import org.springframework.util.Assert;
* Creates a fully qualified JmsItemReader.
*
* @author Glenn Renfro
+ * @author Mahmoud Ben Hassine
*
* @since 4.0
*/
diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/mail/javamail/MimeMessageItemWriter.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/mail/javamail/MimeMessageItemWriter.java
index 6a9097f4d..7d4f88993 100644
--- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/mail/javamail/MimeMessageItemWriter.java
+++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/mail/javamail/MimeMessageItemWriter.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006-2010 the original author or authors.
+ * Copyright 2006-2021 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.
@@ -25,7 +25,7 @@ import org.springframework.mail.javamail.JavaMailSender;
import org.springframework.mail.javamail.MimeMailMessage;
import org.springframework.util.Assert;
-import javax.mail.internet.MimeMessage;
+import jakarta.mail.internet.MimeMessage;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
@@ -54,6 +54,7 @@ import java.util.Map.Entry;
*
*
* @author Dave Syer
+ * @author Mahmoud Ben Hassine
*
* @since 2.1
*
diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/validator/BeanValidatingItemProcessor.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/validator/BeanValidatingItemProcessor.java
index 8056a0487..1b8e10806 100644
--- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/validator/BeanValidatingItemProcessor.java
+++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/validator/BeanValidatingItemProcessor.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2018-2019 the original author or authors.
+ * Copyright 2018-2021 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.
@@ -16,7 +16,7 @@
package org.springframework.batch.item.validator;
-import javax.validation.Validator;
+import jakarta.validation.Validator;
import org.springframework.util.Assert;
import org.springframework.validation.beanvalidation.LocalValidatorFactoryBean;
diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/jsr/item/CheckpointSupport.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/jsr/item/CheckpointSupport.java
index 572f211b5..e252f3a37 100644
--- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/jsr/item/CheckpointSupport.java
+++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/jsr/item/CheckpointSupport.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013 the original author or authors.
+ * Copyright 2013-2021 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.
@@ -17,8 +17,8 @@ package org.springframework.batch.jsr.item;
import java.io.Serializable;
-import javax.batch.api.chunk.ItemReader;
-import javax.batch.api.chunk.ItemWriter;
+import jakarta.batch.api.chunk.ItemReader;
+import jakarta.batch.api.chunk.ItemWriter;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
@@ -37,6 +37,7 @@ import org.springframework.util.SerializationUtils;
* {@link ItemReader#checkpointInfo()} or {@link ItemWriter#checkpointInfo()} calls.
*
* @author Michael Minella
+ * @author Mahmoud Ben Hassine
* @since 3.0
*/
public abstract class CheckpointSupport extends ItemStreamSupport{
diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/jsr/item/ItemProcessorAdapter.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/jsr/item/ItemProcessorAdapter.java
index cc4070aaa..b84874fac 100644
--- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/jsr/item/ItemProcessorAdapter.java
+++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/jsr/item/ItemProcessorAdapter.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013-2019 the original author or authors.
+ * Copyright 2013-2021 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.
@@ -15,7 +15,7 @@
*/
package org.springframework.batch.jsr.item;
-import javax.batch.api.chunk.ItemProcessor;
+import jakarta.batch.api.chunk.ItemProcessor;
import org.springframework.lang.Nullable;
import org.springframework.util.Assert;
diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/jsr/item/ItemReaderAdapter.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/jsr/item/ItemReaderAdapter.java
index 5825205e4..750e7293c 100644
--- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/jsr/item/ItemReaderAdapter.java
+++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/jsr/item/ItemReaderAdapter.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013-2019 the original author or authors.
+ * Copyright 2013-2021 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.
@@ -17,7 +17,7 @@ package org.springframework.batch.jsr.item;
import java.io.Serializable;
-import javax.batch.api.chunk.ItemReader;
+import jakarta.batch.api.chunk.ItemReader;
import org.springframework.lang.Nullable;
import org.springframework.util.Assert;
@@ -28,6 +28,7 @@ import org.springframework.util.ClassUtils;
* to the corresponding method on the delegate.
*
* @author Michael Minella
+ * @author Mahmoud Ben Hassine
* @since 3.0
*/
public class ItemReaderAdapter extends CheckpointSupport implements org.springframework.batch.item.ItemReader {
diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/jsr/item/ItemWriterAdapter.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/jsr/item/ItemWriterAdapter.java
index 69a73604a..d5377b481 100644
--- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/jsr/item/ItemWriterAdapter.java
+++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/jsr/item/ItemWriterAdapter.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013 the original author or authors.
+ * Copyright 2013-2021 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.
@@ -18,7 +18,7 @@ package org.springframework.batch.jsr.item;
import java.io.Serializable;
import java.util.List;
-import javax.batch.api.chunk.ItemWriter;
+import jakarta.batch.api.chunk.ItemWriter;
import org.springframework.util.Assert;
import org.springframework.util.ClassUtils;
@@ -28,6 +28,7 @@ import org.springframework.util.ClassUtils;
* to the corresponding method on the delegate.
*
* @author Michael Minella
+ * @author Mahmoud Ben Hassine
* @since 3.0
*/
public class ItemWriterAdapter extends CheckpointSupport implements org.springframework.batch.item.ItemWriter {
diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/jsr/repeat/CheckpointAlgorithmAdapter.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/jsr/repeat/CheckpointAlgorithmAdapter.java
index 935702134..d19c60edf 100644
--- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/jsr/repeat/CheckpointAlgorithmAdapter.java
+++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/jsr/repeat/CheckpointAlgorithmAdapter.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013 the original author or authors.
+ * Copyright 2013-2021 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.
@@ -15,8 +15,8 @@
*/
package org.springframework.batch.jsr.repeat;
-import javax.batch.api.chunk.CheckpointAlgorithm;
-import javax.batch.operations.BatchRuntimeException;
+import jakarta.batch.api.chunk.CheckpointAlgorithm;
+import jakarta.batch.operations.BatchRuntimeException;
import org.springframework.batch.repeat.CompletionPolicy;
import org.springframework.batch.repeat.RepeatContext;
@@ -28,6 +28,7 @@ import org.springframework.util.Assert;
* of the framework.
*
* @author Michael Minella
+ * @author Mahmoud Ben Hassine
* @see CheckpointAlgorithm
* @see CompletionPolicy
*/
diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/container/jms/BatchMessageListenerContainer.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/container/jms/BatchMessageListenerContainer.java
index ec6045c1f..fd34db125 100644
--- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/container/jms/BatchMessageListenerContainer.java
+++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/container/jms/BatchMessageListenerContainer.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006-2007 the original author or authors.
+ * Copyright 2006-2021 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.
@@ -26,9 +26,9 @@ import org.springframework.jms.connection.TransactionAwareConnectionFactoryProxy
import org.springframework.jms.listener.DefaultMessageListenerContainer;
import org.springframework.transaction.interceptor.TransactionInterceptor;
-import javax.jms.JMSException;
-import javax.jms.MessageConsumer;
-import javax.jms.Session;
+import jakarta.jms.JMSException;
+import jakarta.jms.MessageConsumer;
+import jakarta.jms.Session;
/**
* Message listener container adapted for intercepting the message reception
@@ -49,6 +49,7 @@ import javax.jms.Session;
* the JMS session from synchronizing with the database transaction.
*
* @author Dave Syer
+ * @author Mahmoud Ben Hassine
*
*/
public class BatchMessageListenerContainer extends DefaultMessageListenerContainer {
@@ -121,7 +122,7 @@ public class BatchMessageListenerContainer extends DefaultMessageListenerContain
/**
* Override base class method to wrap call in advice if provided.
* @see org.springframework.jms.listener.AbstractPollingMessageListenerContainer#receiveAndExecute(Object,
- * javax.jms.Session, javax.jms.MessageConsumer)
+ * jakarta.jms.Session, jakarta.jms.MessageConsumer)
*/
@Override
protected boolean receiveAndExecute(final Object invoker, final Session session, final MessageConsumer consumer)
diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/container/jms/BatchMessageListenerContainerIntegrationTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/container/jms/BatchMessageListenerContainerIntegrationTests.java
index 60691338d..12848bdd7 100644
--- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/container/jms/BatchMessageListenerContainerIntegrationTests.java
+++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/container/jms/BatchMessageListenerContainerIntegrationTests.java
@@ -24,10 +24,10 @@ import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.TimeUnit;
-import javax.jms.JMSException;
-import javax.jms.Message;
-import javax.jms.MessageListener;
-import javax.jms.TextMessage;
+import jakarta.jms.JMSException;
+import jakarta.jms.Message;
+import jakarta.jms.MessageListener;
+import jakarta.jms.TextMessage;
import org.junit.After;
import org.junit.AfterClass;
diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/container/jms/BatchMessageListenerContainerTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/container/jms/BatchMessageListenerContainerTests.java
index c28198787..4be1b2504 100644
--- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/container/jms/BatchMessageListenerContainerTests.java
+++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/container/jms/BatchMessageListenerContainerTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006-2007 the original author or authors.
+ * Copyright 2006-2021 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.
@@ -18,12 +18,12 @@ package org.springframework.batch.container.jms;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
-import javax.jms.ConnectionFactory;
-import javax.jms.JMSException;
-import javax.jms.Message;
-import javax.jms.MessageConsumer;
-import javax.jms.MessageListener;
-import javax.jms.Session;
+import jakarta.jms.ConnectionFactory;
+import jakarta.jms.JMSException;
+import jakarta.jms.Message;
+import jakarta.jms.MessageConsumer;
+import jakarta.jms.MessageListener;
+import jakarta.jms.Session;
import org.aopalliance.aop.Advice;
import org.junit.Test;
diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/database/JpaItemWriterIntegrationTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/database/JpaItemWriterIntegrationTests.java
index 16da47a89..44f39f79a 100644
--- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/database/JpaItemWriterIntegrationTests.java
+++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/database/JpaItemWriterIntegrationTests.java
@@ -17,7 +17,7 @@ package org.springframework.batch.item.database;
import java.util.Arrays;
import java.util.List;
-import javax.persistence.EntityManagerFactory;
+import jakarta.persistence.EntityManagerFactory;
import javax.sql.DataSource;
import org.junit.After;
diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/database/JpaItemWriterTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/database/JpaItemWriterTests.java
index 032a1b6f1..b0f5ce3a7 100644
--- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/database/JpaItemWriterTests.java
+++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/database/JpaItemWriterTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006-2019 the original author or authors.
+ * Copyright 2006-2021 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.
@@ -26,8 +26,8 @@ import static org.mockito.Mockito.when;
import java.util.Arrays;
import java.util.List;
-import javax.persistence.EntityManager;
-import javax.persistence.EntityManagerFactory;
+import jakarta.persistence.EntityManager;
+import jakarta.persistence.EntityManagerFactory;
import org.junit.Before;
import org.junit.Test;
diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/database/JpaNativeQueryProviderIntegrationTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/database/JpaNativeQueryProviderIntegrationTests.java
index d3cb05184..74a482409 100644
--- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/database/JpaNativeQueryProviderIntegrationTests.java
+++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/database/JpaNativeQueryProviderIntegrationTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006-2008 the original author or authors.
+ * Copyright 2006-2021 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.
@@ -21,8 +21,8 @@ import static org.junit.Assert.assertEquals;
import java.util.ArrayList;
import java.util.List;
-import javax.persistence.EntityManagerFactory;
-import javax.persistence.Query;
+import jakarta.persistence.EntityManagerFactory;
+import jakarta.persistence.Query;
import org.junit.Test;
import org.junit.runner.RunWith;
@@ -36,6 +36,7 @@ import org.springframework.transaction.annotation.Transactional;
/**
* @author Anatoly Polinsky
* @author Dave Syer
+ * @author Mahmoud Ben Hassine
*/
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations={"JpaPagingItemReaderCommonTests-context.xml"})
diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/database/JpaPagingItemReaderAsyncTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/database/JpaPagingItemReaderAsyncTests.java
index f1642d121..601d4040d 100644
--- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/database/JpaPagingItemReaderAsyncTests.java
+++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/database/JpaPagingItemReaderAsyncTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2009-2014 the original author or authors.
+ * Copyright 2009-2021 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.
@@ -28,7 +28,7 @@ import java.util.concurrent.ExecutionException;
import java.util.concurrent.ExecutorCompletionService;
import java.util.concurrent.Executors;
-import javax.persistence.EntityManagerFactory;
+import jakarta.persistence.EntityManagerFactory;
import javax.sql.DataSource;
import org.apache.commons.logging.Log;
diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/database/JpaPagingItemReaderCommonTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/database/JpaPagingItemReaderCommonTests.java
index 9a7acc1db..adbd9f9c0 100644
--- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/database/JpaPagingItemReaderCommonTests.java
+++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/database/JpaPagingItemReaderCommonTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2008-2012 the original author or authors.
+ * Copyright 2008-2021 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.
@@ -15,7 +15,7 @@
*/
package org.springframework.batch.item.database;
-import javax.persistence.EntityManagerFactory;
+import jakarta.persistence.EntityManagerFactory;
import org.junit.runner.RunWith;
import org.springframework.batch.item.AbstractItemStreamItemReaderTests;
diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/database/JpaPagingItemReaderIntegrationTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/database/JpaPagingItemReaderIntegrationTests.java
index a3d13f64e..b2c64492f 100644
--- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/database/JpaPagingItemReaderIntegrationTests.java
+++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/database/JpaPagingItemReaderIntegrationTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2008-2012 the original author or authors.
+ * Copyright 2008-2021 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.
@@ -17,7 +17,7 @@ package org.springframework.batch.item.database;
import java.util.Collections;
-import javax.persistence.EntityManagerFactory;
+import jakarta.persistence.EntityManagerFactory;
import org.springframework.batch.item.ItemReader;
import org.springframework.batch.item.sample.Foo;
@@ -28,6 +28,7 @@ import org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter;
* Tests for {@link org.springframework.batch.item.database.JpaPagingItemReader}.
*
* @author Thomas Risberg
+ * @author Mahmoud Ben Hassine
*/
public class JpaPagingItemReaderIntegrationTests extends AbstractGenericDataSourceItemReaderIntegrationTests {
diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/database/JpaPagingItemReaderNamedQueryIntegrationTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/database/JpaPagingItemReaderNamedQueryIntegrationTests.java
index e033cc440..62b613860 100644
--- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/database/JpaPagingItemReaderNamedQueryIntegrationTests.java
+++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/database/JpaPagingItemReaderNamedQueryIntegrationTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2020 the original author or authors.
+ * Copyright 2020-2021 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.
@@ -15,7 +15,7 @@
*/
package org.springframework.batch.item.database;
-import javax.persistence.EntityManagerFactory;
+import jakarta.persistence.EntityManagerFactory;
import org.junit.runner.RunWith;
diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/database/JpaPagingItemReaderNativeQueryIntegrationTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/database/JpaPagingItemReaderNativeQueryIntegrationTests.java
index 0c18d969f..997ae8daa 100644
--- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/database/JpaPagingItemReaderNativeQueryIntegrationTests.java
+++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/database/JpaPagingItemReaderNativeQueryIntegrationTests.java
@@ -17,7 +17,7 @@ package org.springframework.batch.item.database;
import java.util.Collections;
-import javax.persistence.EntityManagerFactory;
+import jakarta.persistence.EntityManagerFactory;
import javax.sql.DataSource;
import org.junit.runner.RunWith;
@@ -40,6 +40,7 @@ import org.springframework.transaction.PlatformTransactionManager;
/**
* @author Anatoly Polinsky
* @author Dave Syer
+ * @author Mahmoud Ben Hassine
*/
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = JpaPagingItemReaderNativeQueryIntegrationTests.JpaConfiguration.class)
diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/database/JpaPagingItemReaderParameterTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/database/JpaPagingItemReaderParameterTests.java
index 8fdc05751..d0b7532ed 100644
--- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/database/JpaPagingItemReaderParameterTests.java
+++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/database/JpaPagingItemReaderParameterTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2008-2014 the original author or authors.
+ * Copyright 2008-2021 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.
@@ -17,7 +17,7 @@ package org.springframework.batch.item.database;
import java.util.Collections;
-import javax.persistence.EntityManagerFactory;
+import jakarta.persistence.EntityManagerFactory;
import org.junit.runner.RunWith;
import org.springframework.batch.item.sample.Foo;
diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/database/builder/JpaCursorItemReaderBuilderTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/database/builder/JpaCursorItemReaderBuilderTests.java
index fefd0667b..0b98edb3d 100644
--- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/database/builder/JpaCursorItemReaderBuilderTests.java
+++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/database/builder/JpaCursorItemReaderBuilderTests.java
@@ -20,7 +20,7 @@ import java.util.HashMap;
import java.util.List;
import java.util.Map;
-import javax.persistence.EntityManagerFactory;
+import jakarta.persistence.EntityManagerFactory;
import javax.sql.DataSource;
import org.junit.After;
diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/database/builder/JpaItemWriterBuilderTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/database/builder/JpaItemWriterBuilderTests.java
index 1c78a61ae..690d61a51 100644
--- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/database/builder/JpaItemWriterBuilderTests.java
+++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/database/builder/JpaItemWriterBuilderTests.java
@@ -17,8 +17,8 @@ package org.springframework.batch.item.database.builder;
import java.util.Arrays;
import java.util.List;
-import javax.persistence.EntityManager;
-import javax.persistence.EntityManagerFactory;
+import jakarta.persistence.EntityManager;
+import jakarta.persistence.EntityManagerFactory;
import org.junit.After;
import org.junit.Before;
diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/database/builder/JpaPagingItemReaderBuilderTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/database/builder/JpaPagingItemReaderBuilderTests.java
index bd3c77fd0..08437eed8 100644
--- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/database/builder/JpaPagingItemReaderBuilderTests.java
+++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/database/builder/JpaPagingItemReaderBuilderTests.java
@@ -19,7 +19,7 @@ import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
-import javax.persistence.EntityManagerFactory;
+import jakarta.persistence.EntityManagerFactory;
import javax.sql.DataSource;
import org.junit.After;
diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/database/orm/JpaNamedQueryProviderTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/database/orm/JpaNamedQueryProviderTests.java
index 64cc04015..049a2539d 100644
--- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/database/orm/JpaNamedQueryProviderTests.java
+++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/database/orm/JpaNamedQueryProviderTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2020 the original author or authors.
+ * Copyright 2020-2021 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.
@@ -15,9 +15,9 @@
*/
package org.springframework.batch.item.database.orm;
-import javax.persistence.EntityManager;
-import javax.persistence.Query;
-import javax.persistence.TypedQuery;
+import jakarta.persistence.EntityManager;
+import jakarta.persistence.Query;
+import jakarta.persistence.TypedQuery;
import static org.junit.Assert.assertEquals;
import static org.mockito.Mockito.mock;
diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/database/support/JpaNativeQueryProviderTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/database/support/JpaNativeQueryProviderTests.java
index fe3bfd388..bd311c414 100644
--- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/database/support/JpaNativeQueryProviderTests.java
+++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/database/support/JpaNativeQueryProviderTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006-2008 the original author or authors.
+ * Copyright 2006-2021 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.
@@ -16,8 +16,8 @@
package org.springframework.batch.item.database.support;
-import javax.persistence.EntityManager;
-import javax.persistence.Query;
+import jakarta.persistence.EntityManager;
+import jakarta.persistence.Query;
import org.junit.Test;
@@ -32,6 +32,7 @@ import static org.mockito.Mockito.when;
* @author Anatoly Polinsky
* @author Dave Syer
* @author Will Schipp
+ * @author Mahmoud Ben Hassine
*/
public class JpaNativeQueryProviderTests {
diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/jms/JmsItemReaderTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/jms/JmsItemReaderTests.java
index 3f3ac0e5e..ac9ada385 100644
--- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/jms/JmsItemReaderTests.java
+++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/jms/JmsItemReaderTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006-2007 the original author or authors.
+ * Copyright 2006-2021 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.
@@ -25,7 +25,7 @@ import static org.junit.Assert.fail;
import java.util.Date;
-import javax.jms.Message;
+import jakarta.jms.Message;
import org.junit.Test;
import org.springframework.jms.core.JmsOperations;
diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/jms/JmsMethodArgumentsKeyGeneratorTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/jms/JmsMethodArgumentsKeyGeneratorTests.java
index aa9a13b44..e911df4e7 100644
--- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/jms/JmsMethodArgumentsKeyGeneratorTests.java
+++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/jms/JmsMethodArgumentsKeyGeneratorTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006-2007 the original author or authors.
+ * Copyright 2006-2021 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.
@@ -19,7 +19,7 @@ import static org.junit.Assert.assertEquals;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
-import javax.jms.Message;
+import jakarta.jms.Message;
import org.junit.Test;
@@ -27,6 +27,7 @@ import org.junit.Test;
/**
* @author Dave Syer
* @author Will Schipp
+ * @author Mahmoud Ben Hassine
*
*/
public class JmsMethodArgumentsKeyGeneratorTests {
diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/jms/JmsNewMethodArgumentsIdentifierTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/jms/JmsNewMethodArgumentsIdentifierTests.java
index 466e15ec9..2150cc540 100644
--- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/jms/JmsNewMethodArgumentsIdentifierTests.java
+++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/jms/JmsNewMethodArgumentsIdentifierTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006-2007 the original author or authors.
+ * Copyright 2006-2021 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.
@@ -19,7 +19,7 @@ import static org.junit.Assert.assertEquals;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
-import javax.jms.Message;
+import jakarta.jms.Message;
import org.junit.Test;
@@ -27,6 +27,7 @@ import org.junit.Test;
/**
* @author Dave Syer
* @author Will Schipp
+ * @author Mahmoud Ben Hassine
*
*/
public class JmsNewMethodArgumentsIdentifierTests {
diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/jms/builder/JmsItemReaderBuilderTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/jms/builder/JmsItemReaderBuilderTests.java
index d02478428..002c29ef8 100644
--- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/jms/builder/JmsItemReaderBuilderTests.java
+++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/jms/builder/JmsItemReaderBuilderTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2017-2019 the original author or authors.
+ * Copyright 2017-2021 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.
@@ -18,7 +18,7 @@ package org.springframework.batch.item.jms.builder;
import java.util.Date;
-import javax.jms.Message;
+import jakarta.jms.Message;
import org.junit.Before;
import org.junit.Test;
diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/mail/DefaultMailErrorHandlerTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/mail/DefaultMailErrorHandlerTests.java
index 48235bb09..33d968ece 100644
--- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/mail/DefaultMailErrorHandlerTests.java
+++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/mail/DefaultMailErrorHandlerTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006-2010 the original author or authors.
+ * Copyright 2006-2021 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.
@@ -17,7 +17,7 @@ package org.springframework.batch.item.mail;
import static org.junit.Assert.*;
-import javax.mail.MessagingException;
+import jakarta.mail.MessagingException;
import org.junit.Test;
import org.springframework.mail.MailException;
@@ -27,6 +27,7 @@ import org.springframework.mail.SimpleMailMessage;
/**
* @author Dave Syer
+ * @author Mahmoud Ben Hassine
*
* @since 2.1
*
diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/mail/SimpleMailMessageItemWriterTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/mail/SimpleMailMessageItemWriterTests.java
index 63ffc0c73..ac7213346 100644
--- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/mail/SimpleMailMessageItemWriterTests.java
+++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/mail/SimpleMailMessageItemWriterTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006-2010 the original author or authors.
+ * Copyright 2006-2021 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.
@@ -25,7 +25,7 @@ import java.util.Arrays;
import java.util.Collections;
import java.util.concurrent.atomic.AtomicReference;
-import javax.mail.MessagingException;
+import jakarta.mail.MessagingException;
import org.junit.Before;
import org.junit.Test;
@@ -40,6 +40,7 @@ import org.springframework.util.ReflectionUtils;
/**
* @author Dave Syer
* @author Will Schipp
+ * @author Mahmoud Ben Hassine
*
* @since 2.1
*
diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/mail/builder/SimpleMailMessageItemWriterBuilderTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/mail/builder/SimpleMailMessageItemWriterBuilderTests.java
index a942cab20..3830fb6d9 100644
--- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/mail/builder/SimpleMailMessageItemWriterBuilderTests.java
+++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/mail/builder/SimpleMailMessageItemWriterBuilderTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2017 the original author or authors.
+ * Copyright 2017-2021 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.
@@ -20,7 +20,7 @@ import java.util.Arrays;
import java.util.Collections;
import java.util.concurrent.atomic.AtomicReference;
-import javax.mail.MessagingException;
+import jakarta.mail.MessagingException;
import org.junit.Before;
import org.junit.Test;
@@ -41,6 +41,7 @@ import static org.mockito.Mockito.when;
/**
* @author Glenn Renfro
+ * @author Mahmoud Ben Hassine
*/
public class SimpleMailMessageItemWriterBuilderTests {
diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/mail/javamail/MimeMessageItemWriterTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/mail/javamail/MimeMessageItemWriterTests.java
index 3a4459d68..fe203c976 100644
--- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/mail/javamail/MimeMessageItemWriterTests.java
+++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/mail/javamail/MimeMessageItemWriterTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006-2010 the original author or authors.
+ * Copyright 2006-2021 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.
@@ -25,9 +25,9 @@ import java.util.Collections;
import java.util.Properties;
import java.util.concurrent.atomic.AtomicReference;
-import javax.mail.MessagingException;
-import javax.mail.Session;
-import javax.mail.internet.MimeMessage;
+import jakarta.mail.MessagingException;
+import jakarta.mail.Session;
+import jakarta.mail.internet.MimeMessage;
import org.junit.Before;
import org.junit.Test;
@@ -42,6 +42,7 @@ import org.springframework.util.ReflectionUtils;
/**
* @author Dave Syer
* @author Will Schipp
+ * @author Mahmoud Ben Hassine
*
* @since 2.1
*
diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/sample/Foo.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/sample/Foo.java
index 8328080c4..fd4f07d3e 100644
--- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/sample/Foo.java
+++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/sample/Foo.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2008-2012 the original author or authors.
+ * Copyright 2008-2021 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.
@@ -15,9 +15,9 @@
*/
package org.springframework.batch.item.sample;
-import javax.persistence.Entity;
-import javax.persistence.Id;
-import javax.persistence.Table;
+import jakarta.persistence.Entity;
+import jakarta.persistence.Id;
+import jakarta.persistence.Table;
/**
* Simple domain object for testing purposes.
diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/sample/Person.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/sample/Person.java
index 70d855611..db50eb9b8 100644
--- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/sample/Person.java
+++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/sample/Person.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2019 the original author or authors.
+ * Copyright 2019-2021 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.
@@ -16,9 +16,9 @@
package org.springframework.batch.item.sample;
import java.util.Objects;
-import javax.persistence.Entity;
-import javax.persistence.Id;
-import javax.persistence.Table;
+import jakarta.persistence.Entity;
+import jakarta.persistence.Id;
+import jakarta.persistence.Table;
@Entity
@Table(name = "person")
diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/sample/books/Author.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/sample/books/Author.java
index dc48a751a..9a40f6a8a 100644
--- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/sample/books/Author.java
+++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/sample/books/Author.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2020 the original author or authors.
+ * Copyright 2020-2021 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.
@@ -15,12 +15,12 @@
*/
package org.springframework.batch.item.sample.books;
-import javax.persistence.Basic;
-import javax.persistence.Entity;
-import javax.persistence.Id;
-import javax.persistence.JoinColumn;
-import javax.persistence.OneToMany;
-import javax.persistence.Table;
+import jakarta.persistence.Basic;
+import jakarta.persistence.Entity;
+import jakarta.persistence.Id;
+import jakarta.persistence.JoinColumn;
+import jakarta.persistence.OneToMany;
+import jakarta.persistence.Table;
import java.util.List;
import java.util.Objects;
@@ -28,6 +28,7 @@ import java.util.Objects;
* Basic domain object with a lazy one-to-many association.
*
* @author Antoine Kapps
+ * @author Mahmoud Ben Hassine
*/
@Entity
@Table(name = "T_AUTHORS")
diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/sample/books/Book.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/sample/books/Book.java
index 1e84db1eb..c895fadf2 100644
--- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/sample/books/Book.java
+++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/sample/books/Book.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2020 the original author or authors.
+ * Copyright 2020-2021 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.
@@ -15,15 +15,16 @@
*/
package org.springframework.batch.item.sample.books;
-import javax.persistence.Entity;
-import javax.persistence.Id;
-import javax.persistence.Table;
+import jakarta.persistence.Entity;
+import jakarta.persistence.Id;
+import jakarta.persistence.Table;
import java.util.Objects;
/**
* Simple domain object implied in an association with {@link Author}.
*
* @author Antoine Kapps
+ * @author Mahmoud Ben Hassine
*/
@Entity
@Table(name = "T_BOOKS")
diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/validator/BeanValidatingItemProcessorTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/validator/BeanValidatingItemProcessorTests.java
index 2780a3c0e..69b55590e 100644
--- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/validator/BeanValidatingItemProcessorTests.java
+++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/validator/BeanValidatingItemProcessorTests.java
@@ -16,7 +16,7 @@
package org.springframework.batch.item.validator;
-import javax.validation.constraints.NotEmpty;
+import jakarta.validation.constraints.NotEmpty;
import org.junit.Assert;
import org.junit.Test;
diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/xml/StaxEventItemWriterTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/xml/StaxEventItemWriterTests.java
index 25f920714..b833f4f42 100644
--- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/xml/StaxEventItemWriterTests.java
+++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/xml/StaxEventItemWriterTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2008-2020 the original author or authors.
+ * Copyright 2008-2021 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.
@@ -19,7 +19,7 @@ import java.io.File;
import java.io.IOException;
import java.util.Collections;
import java.util.List;
-import javax.xml.bind.annotation.XmlRootElement;
+import jakarta.xml.bind.annotation.XmlRootElement;
import javax.xml.stream.XMLEventFactory;
import javax.xml.stream.XMLEventWriter;
import javax.xml.stream.XMLStreamException;
diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/xml/builder/StaxEventItemReaderBuilderTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/xml/builder/StaxEventItemReaderBuilderTests.java
index 979a18afc..6d701f606 100644
--- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/xml/builder/StaxEventItemReaderBuilderTests.java
+++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/xml/builder/StaxEventItemReaderBuilderTests.java
@@ -18,7 +18,7 @@ package org.springframework.batch.item.xml.builder;
import java.nio.ByteBuffer;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
-import javax.xml.bind.annotation.XmlRootElement;
+import jakarta.xml.bind.annotation.XmlRootElement;
import javax.xml.stream.XMLInputFactory;
import org.junit.Rule;
diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/xml/builder/StaxEventItemWriterBuilderTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/xml/builder/StaxEventItemWriterBuilderTests.java
index 30b54e386..97886b134 100644
--- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/xml/builder/StaxEventItemWriterBuilderTests.java
+++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/xml/builder/StaxEventItemWriterBuilderTests.java
@@ -22,7 +22,7 @@ import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
-import javax.xml.bind.annotation.XmlRootElement;
+import jakarta.xml.bind.annotation.XmlRootElement;
import javax.xml.stream.XMLEventFactory;
import javax.xml.stream.XMLStreamException;
diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/xml/domain/QualifiedTrade.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/xml/domain/QualifiedTrade.java
index dc4a08614..db452fe87 100644
--- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/xml/domain/QualifiedTrade.java
+++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/xml/domain/QualifiedTrade.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2010-2014 the original author or authors.
+ * Copyright 2010-2021 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.
@@ -17,14 +17,15 @@ package org.springframework.batch.item.xml.domain;
import java.math.BigDecimal;
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlType;
+import jakarta.xml.bind.annotation.XmlAccessType;
+import jakarta.xml.bind.annotation.XmlAccessorType;
+import jakarta.xml.bind.annotation.XmlElement;
+import jakarta.xml.bind.annotation.XmlRootElement;
+import jakarta.xml.bind.annotation.XmlType;
/**
* @author Rob Harrop
+ * @author Mahmoud Ben Hassine
*/
@XmlRootElement(name="trade", namespace="urn:org.springframework.batch.io.oxm.domain")
@XmlType
diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/xml/domain/Trade.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/xml/domain/Trade.java
index a9ad7452d..b0f04e1de 100644
--- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/xml/domain/Trade.java
+++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/xml/domain/Trade.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2010-2014 the original author or authors.
+ * Copyright 2010-2021 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.
@@ -17,11 +17,12 @@ package org.springframework.batch.item.xml.domain;
import java.math.BigDecimal;
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlType;
+import jakarta.xml.bind.annotation.XmlRootElement;
+import jakarta.xml.bind.annotation.XmlType;
/**
* @author Rob Harrop
+ * @author Mahmoud Ben Hassine
*/
@XmlRootElement(name="trade")
@XmlType
diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/jsr/item/ItemProcessorAdapterTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/jsr/item/ItemProcessorAdapterTests.java
index 4bf72d120..227cb2645 100644
--- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/jsr/item/ItemProcessorAdapterTests.java
+++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/jsr/item/ItemProcessorAdapterTests.java
@@ -18,7 +18,7 @@ package org.springframework.batch.jsr.item;
import static org.junit.Assert.assertEquals;
import static org.mockito.Mockito.when;
-import javax.batch.api.chunk.ItemProcessor;
+import jakarta.batch.api.chunk.ItemProcessor;
import org.junit.Before;
import org.junit.Rule;
diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/jsr/item/ItemReaderAdapterTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/jsr/item/ItemReaderAdapterTests.java
index 3f91be7e5..d244f48f7 100644
--- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/jsr/item/ItemReaderAdapterTests.java
+++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/jsr/item/ItemReaderAdapterTests.java
@@ -18,7 +18,7 @@ package org.springframework.batch.jsr.item;
import java.io.Serializable;
import java.util.Arrays;
import java.util.List;
-import javax.batch.api.chunk.ItemReader;
+import jakarta.batch.api.chunk.ItemReader;
import org.junit.Before;
import org.junit.Rule;
diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/jsr/item/ItemWriterAdapterTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/jsr/item/ItemWriterAdapterTests.java
index c64e2f932..ba6f0d7a6 100644
--- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/jsr/item/ItemWriterAdapterTests.java
+++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/jsr/item/ItemWriterAdapterTests.java
@@ -18,7 +18,7 @@ package org.springframework.batch.jsr.item;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
-import javax.batch.api.chunk.ItemWriter;
+import jakarta.batch.api.chunk.ItemWriter;
import org.junit.Before;
import org.junit.Rule;
diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/repeat/jms/AsynchronousTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/repeat/jms/AsynchronousTests.java
index 7e93a29c8..6b0c494d9 100644
--- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/repeat/jms/AsynchronousTests.java
+++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/repeat/jms/AsynchronousTests.java
@@ -18,10 +18,10 @@ package org.springframework.batch.repeat.jms;
import java.util.ArrayList;
import java.util.List;
-import javax.jms.JMSException;
-import javax.jms.Message;
-import javax.jms.Session;
-import javax.jms.TextMessage;
+import jakarta.jms.JMSException;
+import jakarta.jms.Message;
+import jakarta.jms.Session;
+import jakarta.jms.TextMessage;
import org.junit.After;
import org.junit.Before;
diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/repeat/jms/SynchronousTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/repeat/jms/SynchronousTests.java
index b986068c7..91422f668 100644
--- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/repeat/jms/SynchronousTests.java
+++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/repeat/jms/SynchronousTests.java
@@ -22,9 +22,9 @@ import static org.junit.Assert.assertTrue;
import java.util.ArrayList;
import java.util.List;
-import javax.jms.ConnectionFactory;
-import javax.jms.JMSException;
-import javax.jms.Session;
+import jakarta.jms.ConnectionFactory;
+import jakarta.jms.JMSException;
+import jakarta.jms.Session;
import org.junit.Test;
import org.junit.runner.RunWith;
diff --git a/spring-batch-infrastructure/src/test/resources/broker.xml b/spring-batch-infrastructure/src/test/resources/broker.xml
new file mode 100644
index 000000000..2a6d5aa22
--- /dev/null
+++ b/spring-batch-infrastructure/src/test/resources/broker.xml
@@ -0,0 +1,12 @@
+
+
+
+ false
+ false
+ false
+ false
+
+ vm://0
+
+
+
\ No newline at end of file
diff --git a/spring-batch-infrastructure/src/test/resources/org/springframework/batch/jms/jms-context.xml b/spring-batch-infrastructure/src/test/resources/org/springframework/batch/jms/jms-context.xml
index d6dfcabf4..404d36edf 100644
--- a/spring-batch-infrastructure/src/test/resources/org/springframework/batch/jms/jms-context.xml
+++ b/spring-batch-infrastructure/src/test/resources/org/springframework/batch/jms/jms-context.xml
@@ -22,8 +22,8 @@
-
-
+
+
-
-
-
-
-
- vm://localhost?jms.prefetchPolicy.all=0
-
-
-
-
-
-
+
+
\ No newline at end of file
diff --git a/spring-batch-integration/pom.xml b/spring-batch-integration/pom.xml
index 594987452..fbc65ff39 100644
--- a/spring-batch-integration/pom.xml
+++ b/spring-batch-integration/pom.xml
@@ -54,6 +54,12 @@
${spring-integration.version}
true
+
+ jakarta.jms
+ jakarta.jms-api
+ ${jakarta.jms-api.version}
+ true
+
@@ -94,14 +100,14 @@
org.apache.activemq
- activemq-broker
- ${activemq.version}
+ artemis-server
+ ${artemis.version}
test
org.apache.activemq
- activemq-kahadb-store
- ${activemq.version}
+ artemis-jakarta-client
+ ${artemis.version}
test
diff --git a/spring-batch-integration/src/test/resources/broker.xml b/spring-batch-integration/src/test/resources/broker.xml
new file mode 100644
index 000000000..2a6d5aa22
--- /dev/null
+++ b/spring-batch-integration/src/test/resources/broker.xml
@@ -0,0 +1,12 @@
+
+
+
+ false
+ false
+ false
+ false
+
+ vm://0
+
+
+
\ No newline at end of file
diff --git a/spring-batch-integration/src/test/resources/jms-context.xml b/spring-batch-integration/src/test/resources/jms-context.xml
index 24d362c7c..5dd1d4bd9 100644
--- a/spring-batch-integration/src/test/resources/jms-context.xml
+++ b/spring-batch-integration/src/test/resources/jms-context.xml
@@ -10,27 +10,13 @@
-
-
-
+
+
-
-
-
-
-
- vm://localhost
-
-
-
-
-
-
+
+
\ No newline at end of file
diff --git a/spring-batch-jsr352-tck/jsr352-tck-1.0/artifacts/jsr352-api-sigtest-java6.sig b/spring-batch-jsr352-tck/jsr352-tck-1.0/artifacts/jsr352-api-sigtest-java6.sig
index 0a64ddba8..960da6bd0 100644
--- a/spring-batch-jsr352-tck/jsr352-tck-1.0/artifacts/jsr352-api-sigtest-java6.sig
+++ b/spring-batch-jsr352-tck/jsr352-tck-1.0/artifacts/jsr352-api-sigtest-java6.sig
@@ -99,202 +99,202 @@ CLSS public abstract interface !annotation java.lang.annotation.Target
intf java.lang.annotation.Annotation
meth public abstract java.lang.annotation.ElementType[] value()
-CLSS public abstract javax.batch.api.AbstractBatchlet
+CLSS public abstract jakarta.batch.api.AbstractBatchlet
cons public ()
-intf javax.batch.api.Batchlet
+intf jakarta.batch.api.Batchlet
meth public abstract java.lang.String process() throws java.lang.Exception
meth public void stop() throws java.lang.Exception
supr java.lang.Object
-CLSS public abstract interface !annotation javax.batch.api.BatchProperty
+CLSS public abstract interface !annotation jakarta.batch.api.BatchProperty
anno 0 java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy value=RUNTIME)
anno 0 java.lang.annotation.Target(java.lang.annotation.ElementType[] value=[FIELD, METHOD, PARAMETER])
anno 0 javax.inject.Qualifier()
intf java.lang.annotation.Annotation
meth public abstract !hasdefault java.lang.String name()
-CLSS public abstract interface javax.batch.api.Batchlet
+CLSS public abstract interface jakarta.batch.api.Batchlet
meth public abstract java.lang.String process() throws java.lang.Exception
meth public abstract void stop() throws java.lang.Exception
-CLSS public abstract interface javax.batch.api.Decider
-meth public abstract java.lang.String decide(javax.batch.runtime.StepExecution[]) throws java.lang.Exception
+CLSS public abstract interface jakarta.batch.api.Decider
+meth public abstract java.lang.String decide(jakarta.batch.runtime.StepExecution[]) throws java.lang.Exception
-CLSS public abstract javax.batch.api.chunk.AbstractCheckpointAlgorithm
+CLSS public abstract jakarta.batch.api.chunk.AbstractCheckpointAlgorithm
cons public ()
-intf javax.batch.api.chunk.CheckpointAlgorithm
+intf jakarta.batch.api.chunk.CheckpointAlgorithm
meth public abstract boolean isReadyToCheckpoint() throws java.lang.Exception
meth public int checkpointTimeout() throws java.lang.Exception
meth public void beginCheckpoint() throws java.lang.Exception
meth public void endCheckpoint() throws java.lang.Exception
supr java.lang.Object
-CLSS public abstract javax.batch.api.chunk.AbstractItemReader
+CLSS public abstract jakarta.batch.api.chunk.AbstractItemReader
cons public ()
-intf javax.batch.api.chunk.ItemReader
+intf jakarta.batch.api.chunk.ItemReader
meth public abstract java.lang.Object readItem() throws java.lang.Exception
meth public java.io.Serializable checkpointInfo() throws java.lang.Exception
meth public void close() throws java.lang.Exception
meth public void open(java.io.Serializable) throws java.lang.Exception
supr java.lang.Object
-CLSS public abstract javax.batch.api.chunk.AbstractItemWriter
+CLSS public abstract jakarta.batch.api.chunk.AbstractItemWriter
cons public ()
-intf javax.batch.api.chunk.ItemWriter
+intf jakarta.batch.api.chunk.ItemWriter
meth public abstract void writeItems(java.util.List) throws java.lang.Exception
meth public java.io.Serializable checkpointInfo() throws java.lang.Exception
meth public void close() throws java.lang.Exception
meth public void open(java.io.Serializable) throws java.lang.Exception
supr java.lang.Object
-CLSS public abstract interface javax.batch.api.chunk.CheckpointAlgorithm
+CLSS public abstract interface jakarta.batch.api.chunk.CheckpointAlgorithm
meth public abstract boolean isReadyToCheckpoint() throws java.lang.Exception
meth public abstract int checkpointTimeout() throws java.lang.Exception
meth public abstract void beginCheckpoint() throws java.lang.Exception
meth public abstract void endCheckpoint() throws java.lang.Exception
-CLSS public abstract interface javax.batch.api.chunk.ItemProcessor
+CLSS public abstract interface jakarta.batch.api.chunk.ItemProcessor
meth public abstract java.lang.Object processItem(java.lang.Object) throws java.lang.Exception
-CLSS public abstract interface javax.batch.api.chunk.ItemReader
+CLSS public abstract interface jakarta.batch.api.chunk.ItemReader
meth public abstract java.io.Serializable checkpointInfo() throws java.lang.Exception
meth public abstract java.lang.Object readItem() throws java.lang.Exception
meth public abstract void close() throws java.lang.Exception
meth public abstract void open(java.io.Serializable) throws java.lang.Exception
-CLSS public abstract interface javax.batch.api.chunk.ItemWriter
+CLSS public abstract interface jakarta.batch.api.chunk.ItemWriter
meth public abstract java.io.Serializable checkpointInfo() throws java.lang.Exception
meth public abstract void close() throws java.lang.Exception
meth public abstract void open(java.io.Serializable) throws java.lang.Exception
meth public abstract void writeItems(java.util.List) throws java.lang.Exception
-CLSS public abstract javax.batch.api.chunk.listener.AbstractChunkListener
+CLSS public abstract jakarta.batch.api.chunk.listener.AbstractChunkListener
cons public ()
-intf javax.batch.api.chunk.listener.ChunkListener
+intf jakarta.batch.api.chunk.listener.ChunkListener
meth public void afterChunk() throws java.lang.Exception
meth public void beforeChunk() throws java.lang.Exception
meth public void onError(java.lang.Exception) throws java.lang.Exception
supr java.lang.Object
-CLSS public abstract javax.batch.api.chunk.listener.AbstractItemProcessListener
+CLSS public abstract jakarta.batch.api.chunk.listener.AbstractItemProcessListener
cons public ()
-intf javax.batch.api.chunk.listener.ItemProcessListener
+intf jakarta.batch.api.chunk.listener.ItemProcessListener
meth public void afterProcess(java.lang.Object,java.lang.Object) throws java.lang.Exception
meth public void beforeProcess(java.lang.Object) throws java.lang.Exception
meth public void onProcessError(java.lang.Object,java.lang.Exception) throws java.lang.Exception
supr java.lang.Object
-CLSS public abstract javax.batch.api.chunk.listener.AbstractItemReadListener
+CLSS public abstract jakarta.batch.api.chunk.listener.AbstractItemReadListener
cons public ()
-intf javax.batch.api.chunk.listener.ItemReadListener
+intf jakarta.batch.api.chunk.listener.ItemReadListener
meth public void afterRead(java.lang.Object) throws java.lang.Exception
meth public void beforeRead() throws java.lang.Exception
meth public void onReadError(java.lang.Exception) throws java.lang.Exception
supr java.lang.Object
-CLSS public abstract javax.batch.api.chunk.listener.AbstractItemWriteListener
+CLSS public abstract jakarta.batch.api.chunk.listener.AbstractItemWriteListener
cons public ()
-intf javax.batch.api.chunk.listener.ItemWriteListener
+intf jakarta.batch.api.chunk.listener.ItemWriteListener
meth public void afterWrite(java.util.List) throws java.lang.Exception
meth public void beforeWrite(java.util.List) throws java.lang.Exception
meth public void onWriteError(java.util.List,java.lang.Exception) throws java.lang.Exception
supr java.lang.Object
-CLSS public abstract interface javax.batch.api.chunk.listener.ChunkListener
+CLSS public abstract interface jakarta.batch.api.chunk.listener.ChunkListener
meth public abstract void afterChunk() throws java.lang.Exception
meth public abstract void beforeChunk() throws java.lang.Exception
meth public abstract void onError(java.lang.Exception) throws java.lang.Exception
-CLSS public abstract interface javax.batch.api.chunk.listener.ItemProcessListener
+CLSS public abstract interface jakarta.batch.api.chunk.listener.ItemProcessListener
meth public abstract void afterProcess(java.lang.Object,java.lang.Object) throws java.lang.Exception
meth public abstract void beforeProcess(java.lang.Object) throws java.lang.Exception
meth public abstract void onProcessError(java.lang.Object,java.lang.Exception) throws java.lang.Exception
-CLSS public abstract interface javax.batch.api.chunk.listener.ItemReadListener
+CLSS public abstract interface jakarta.batch.api.chunk.listener.ItemReadListener
meth public abstract void afterRead(java.lang.Object) throws java.lang.Exception
meth public abstract void beforeRead() throws java.lang.Exception
meth public abstract void onReadError(java.lang.Exception) throws java.lang.Exception
-CLSS public abstract interface javax.batch.api.chunk.listener.ItemWriteListener
+CLSS public abstract interface jakarta.batch.api.chunk.listener.ItemWriteListener
meth public abstract void afterWrite(java.util.List) throws java.lang.Exception
meth public abstract void beforeWrite(java.util.List) throws java.lang.Exception
meth public abstract void onWriteError(java.util.List,java.lang.Exception) throws java.lang.Exception
-CLSS public abstract interface javax.batch.api.chunk.listener.RetryProcessListener
+CLSS public abstract interface jakarta.batch.api.chunk.listener.RetryProcessListener
meth public abstract void onRetryProcessException(java.lang.Object,java.lang.Exception) throws java.lang.Exception
-CLSS public abstract interface javax.batch.api.chunk.listener.RetryReadListener
+CLSS public abstract interface jakarta.batch.api.chunk.listener.RetryReadListener
meth public abstract void onRetryReadException(java.lang.Exception) throws java.lang.Exception
-CLSS public abstract interface javax.batch.api.chunk.listener.RetryWriteListener
+CLSS public abstract interface jakarta.batch.api.chunk.listener.RetryWriteListener
meth public abstract void onRetryWriteException(java.util.List,java.lang.Exception) throws java.lang.Exception
-CLSS public abstract interface javax.batch.api.chunk.listener.SkipProcessListener
+CLSS public abstract interface jakarta.batch.api.chunk.listener.SkipProcessListener
meth public abstract void onSkipProcessItem(java.lang.Object,java.lang.Exception) throws java.lang.Exception
-CLSS public abstract interface javax.batch.api.chunk.listener.SkipReadListener
+CLSS public abstract interface jakarta.batch.api.chunk.listener.SkipReadListener
meth public abstract void onSkipReadItem(java.lang.Exception) throws java.lang.Exception
-CLSS public abstract interface javax.batch.api.chunk.listener.SkipWriteListener
+CLSS public abstract interface jakarta.batch.api.chunk.listener.SkipWriteListener
meth public abstract void onSkipWriteItem(java.util.List,java.lang.Exception) throws java.lang.Exception
-CLSS abstract interface javax.batch.api.chunk.listener.package-info
+CLSS abstract interface jakarta.batch.api.chunk.listener.package-info
-CLSS abstract interface javax.batch.api.chunk.package-info
+CLSS abstract interface jakarta.batch.api.chunk.package-info
-CLSS public abstract javax.batch.api.listener.AbstractJobListener
+CLSS public abstract jakarta.batch.api.listener.AbstractJobListener
cons public ()
-intf javax.batch.api.listener.JobListener
+intf jakarta.batch.api.listener.JobListener
meth public void afterJob() throws java.lang.Exception
meth public void beforeJob() throws java.lang.Exception
supr java.lang.Object
-CLSS public abstract javax.batch.api.listener.AbstractStepListener
+CLSS public abstract jakarta.batch.api.listener.AbstractStepListener
cons public ()
-intf javax.batch.api.listener.StepListener
+intf jakarta.batch.api.listener.StepListener
meth public void afterStep() throws java.lang.Exception
meth public void beforeStep() throws java.lang.Exception
supr java.lang.Object
-CLSS public abstract interface javax.batch.api.listener.JobListener
+CLSS public abstract interface jakarta.batch.api.listener.JobListener
meth public abstract void afterJob() throws java.lang.Exception
meth public abstract void beforeJob() throws java.lang.Exception
-CLSS public abstract interface javax.batch.api.listener.StepListener
+CLSS public abstract interface jakarta.batch.api.listener.StepListener
meth public abstract void afterStep() throws java.lang.Exception
meth public abstract void beforeStep() throws java.lang.Exception
-CLSS abstract interface javax.batch.api.listener.package-info
+CLSS abstract interface jakarta.batch.api.listener.package-info
-CLSS abstract interface javax.batch.api.package-info
+CLSS abstract interface jakarta.batch.api.package-info
-CLSS public abstract javax.batch.api.partition.AbstractPartitionAnalyzer
+CLSS public abstract jakarta.batch.api.partition.AbstractPartitionAnalyzer
cons public ()
-intf javax.batch.api.partition.PartitionAnalyzer
+intf jakarta.batch.api.partition.PartitionAnalyzer
meth public void analyzeCollectorData(java.io.Serializable) throws java.lang.Exception
-meth public void analyzeStatus(javax.batch.runtime.BatchStatus,java.lang.String) throws java.lang.Exception
+meth public void analyzeStatus(jakarta.batch.runtime.BatchStatus,java.lang.String) throws java.lang.Exception
supr java.lang.Object
-CLSS public abstract javax.batch.api.partition.AbstractPartitionReducer
+CLSS public abstract jakarta.batch.api.partition.AbstractPartitionReducer
cons public ()
-intf javax.batch.api.partition.PartitionReducer
-meth public void afterPartitionedStepCompletion(javax.batch.api.partition.PartitionReducer$PartitionStatus) throws java.lang.Exception
+intf jakarta.batch.api.partition.PartitionReducer
+meth public void afterPartitionedStepCompletion(jakarta.batch.api.partition.PartitionReducer$PartitionStatus) throws java.lang.Exception
meth public void beforePartitionedStepCompletion() throws java.lang.Exception
meth public void beginPartitionedStep() throws java.lang.Exception
meth public void rollbackPartitionedStep() throws java.lang.Exception
supr java.lang.Object
-CLSS public abstract interface javax.batch.api.partition.PartitionAnalyzer
+CLSS public abstract interface jakarta.batch.api.partition.PartitionAnalyzer
meth public abstract void analyzeCollectorData(java.io.Serializable) throws java.lang.Exception
-meth public abstract void analyzeStatus(javax.batch.runtime.BatchStatus,java.lang.String) throws java.lang.Exception
+meth public abstract void analyzeStatus(jakarta.batch.runtime.BatchStatus,java.lang.String) throws java.lang.Exception
-CLSS public abstract interface javax.batch.api.partition.PartitionCollector
+CLSS public abstract interface jakarta.batch.api.partition.PartitionCollector
meth public abstract java.io.Serializable collectPartitionData() throws java.lang.Exception
-CLSS public abstract interface javax.batch.api.partition.PartitionMapper
-meth public abstract javax.batch.api.partition.PartitionPlan mapPartitions() throws java.lang.Exception
+CLSS public abstract interface jakarta.batch.api.partition.PartitionMapper
+meth public abstract jakarta.batch.api.partition.PartitionPlan mapPartitions() throws java.lang.Exception
-CLSS public abstract interface javax.batch.api.partition.PartitionPlan
+CLSS public abstract interface jakarta.batch.api.partition.PartitionPlan
meth public abstract boolean getPartitionsOverride()
meth public abstract int getPartitions()
meth public abstract int getThreads()
@@ -304,9 +304,9 @@ meth public abstract void setPartitions(int)
meth public abstract void setPartitionsOverride(boolean)
meth public abstract void setThreads(int)
-CLSS public javax.batch.api.partition.PartitionPlanImpl
+CLSS public jakarta.batch.api.partition.PartitionPlanImpl
cons public ()
-intf javax.batch.api.partition.PartitionPlan
+intf jakarta.batch.api.partition.PartitionPlan
meth public boolean getPartitionsOverride()
meth public int getPartitions()
meth public int getThreads()
@@ -318,24 +318,24 @@ meth public void setThreads(int)
supr java.lang.Object
hfds override,partitionProperties,partitions,threads
-CLSS public abstract interface javax.batch.api.partition.PartitionReducer
+CLSS public abstract interface jakarta.batch.api.partition.PartitionReducer
innr public final static !enum PartitionStatus
-meth public abstract void afterPartitionedStepCompletion(javax.batch.api.partition.PartitionReducer$PartitionStatus) throws java.lang.Exception
+meth public abstract void afterPartitionedStepCompletion(jakarta.batch.api.partition.PartitionReducer$PartitionStatus) throws java.lang.Exception
meth public abstract void beforePartitionedStepCompletion() throws java.lang.Exception
meth public abstract void beginPartitionedStep() throws java.lang.Exception
meth public abstract void rollbackPartitionedStep() throws java.lang.Exception
-CLSS public final static !enum javax.batch.api.partition.PartitionReducer$PartitionStatus
- outer javax.batch.api.partition.PartitionReducer
-fld public final static javax.batch.api.partition.PartitionReducer$PartitionStatus COMMIT
-fld public final static javax.batch.api.partition.PartitionReducer$PartitionStatus ROLLBACK
-meth public static javax.batch.api.partition.PartitionReducer$PartitionStatus valueOf(java.lang.String)
-meth public static javax.batch.api.partition.PartitionReducer$PartitionStatus[] values()
-supr java.lang.Enum
+CLSS public final static !enum jakarta.batch.api.partition.PartitionReducer$PartitionStatus
+ outer jakarta.batch.api.partition.PartitionReducer
+fld public final static jakarta.batch.api.partition.PartitionReducer$PartitionStatus COMMIT
+fld public final static jakarta.batch.api.partition.PartitionReducer$PartitionStatus ROLLBACK
+meth public static jakarta.batch.api.partition.PartitionReducer$PartitionStatus valueOf(java.lang.String)
+meth public static jakarta.batch.api.partition.PartitionReducer$PartitionStatus[] values()
+supr java.lang.Enum
-CLSS abstract interface javax.batch.api.partition.package-info
+CLSS abstract interface jakarta.batch.api.partition.package-info
-CLSS public javax.batch.operations.BatchRuntimeException
+CLSS public jakarta.batch.operations.BatchRuntimeException
cons public ()
cons public (java.lang.String)
cons public (java.lang.String,java.lang.Throwable)
@@ -343,122 +343,122 @@ cons public (java.lang.Throwable)
supr java.lang.RuntimeException
hfds serialVersionUID
-CLSS public javax.batch.operations.JobExecutionAlreadyCompleteException
+CLSS public jakarta.batch.operations.JobExecutionAlreadyCompleteException
cons public ()
cons public (java.lang.String)
cons public (java.lang.String,java.lang.Throwable)
cons public (java.lang.Throwable)
-supr javax.batch.operations.BatchRuntimeException
+supr jakarta.batch.operations.BatchRuntimeException
hfds serialVersionUID
-CLSS public javax.batch.operations.JobExecutionIsRunningException
+CLSS public jakarta.batch.operations.JobExecutionIsRunningException
cons public ()
cons public (java.lang.String)
cons public (java.lang.String,java.lang.Throwable)
cons public (java.lang.Throwable)
-supr javax.batch.operations.BatchRuntimeException
+supr jakarta.batch.operations.BatchRuntimeException
hfds serialVersionUID
-CLSS public javax.batch.operations.JobExecutionNotMostRecentException
+CLSS public jakarta.batch.operations.JobExecutionNotMostRecentException
cons public ()
cons public (java.lang.String)
cons public (java.lang.String,java.lang.Throwable)
cons public (java.lang.Throwable)
-supr javax.batch.operations.BatchRuntimeException
+supr jakarta.batch.operations.BatchRuntimeException
hfds serialVersionUID
-CLSS public javax.batch.operations.JobExecutionNotRunningException
+CLSS public jakarta.batch.operations.JobExecutionNotRunningException
cons public ()
cons public (java.lang.String)
cons public (java.lang.String,java.lang.Throwable)
cons public (java.lang.Throwable)
-supr javax.batch.operations.BatchRuntimeException
+supr jakarta.batch.operations.BatchRuntimeException
hfds serialVersionUID
-CLSS public abstract interface javax.batch.operations.JobOperator
+CLSS public abstract interface jakarta.batch.operations.JobOperator
meth public abstract int getJobInstanceCount(java.lang.String)
meth public abstract java.util.List getRunningExecutions(java.lang.String)
-meth public abstract java.util.List getJobExecutions(javax.batch.runtime.JobInstance)
-meth public abstract java.util.List getJobInstances(java.lang.String,int,int)
-meth public abstract java.util.List getStepExecutions(long)
+meth public abstract java.util.List getJobExecutions(jakarta.batch.runtime.JobInstance)
+meth public abstract java.util.List getJobInstances(java.lang.String,int,int)
+meth public abstract java.util.List getStepExecutions(long)
meth public abstract java.util.Properties getParameters(long)
meth public abstract java.util.Set getJobNames()
-meth public abstract javax.batch.runtime.JobExecution getJobExecution(long)
-meth public abstract javax.batch.runtime.JobInstance getJobInstance(long)
+meth public abstract jakarta.batch.runtime.JobExecution getJobExecution(long)
+meth public abstract jakarta.batch.runtime.JobInstance getJobInstance(long)
meth public abstract long restart(long,java.util.Properties)
meth public abstract long start(java.lang.String,java.util.Properties)
meth public abstract void abandon(long)
meth public abstract void stop(long)
-CLSS public javax.batch.operations.JobRestartException
+CLSS public jakarta.batch.operations.JobRestartException
cons public ()
cons public (java.lang.String)
cons public (java.lang.String,java.lang.Throwable)
cons public (java.lang.Throwable)
-supr javax.batch.operations.BatchRuntimeException
+supr jakarta.batch.operations.BatchRuntimeException
hfds serialVersionUID
-CLSS public javax.batch.operations.JobSecurityException
+CLSS public jakarta.batch.operations.JobSecurityException
cons public ()
cons public (java.lang.String)
cons public (java.lang.String,java.lang.Throwable)
cons public (java.lang.Throwable)
-supr javax.batch.operations.BatchRuntimeException
+supr jakarta.batch.operations.BatchRuntimeException
hfds serialVersionUID
-CLSS public javax.batch.operations.JobStartException
+CLSS public jakarta.batch.operations.JobStartException
cons public ()
cons public (java.lang.String)
cons public (java.lang.String,java.lang.Throwable)
cons public (java.lang.Throwable)
-supr javax.batch.operations.BatchRuntimeException
+supr jakarta.batch.operations.BatchRuntimeException
hfds serialVersionUID
-CLSS public javax.batch.operations.NoSuchJobException
+CLSS public jakarta.batch.operations.NoSuchJobException
cons public ()
cons public (java.lang.String)
cons public (java.lang.String,java.lang.Throwable)
cons public (java.lang.Throwable)
-supr javax.batch.operations.BatchRuntimeException
+supr jakarta.batch.operations.BatchRuntimeException
hfds serialVersionUID
-CLSS public javax.batch.operations.NoSuchJobExecutionException
+CLSS public jakarta.batch.operations.NoSuchJobExecutionException
cons public ()
cons public (java.lang.String)
cons public (java.lang.String,java.lang.Throwable)
cons public (java.lang.Throwable)
-supr javax.batch.operations.BatchRuntimeException
+supr jakarta.batch.operations.BatchRuntimeException
hfds serialVersionUID
-CLSS public javax.batch.operations.NoSuchJobInstanceException
+CLSS public jakarta.batch.operations.NoSuchJobInstanceException
cons public ()
cons public (java.lang.String)
cons public (java.lang.String,java.lang.Throwable)
cons public (java.lang.Throwable)
-supr javax.batch.operations.BatchRuntimeException
+supr jakarta.batch.operations.BatchRuntimeException
hfds serialVersionUID
-CLSS abstract interface javax.batch.operations.package-info
+CLSS abstract interface jakarta.batch.operations.package-info
-CLSS public javax.batch.runtime.BatchRuntime
+CLSS public jakarta.batch.runtime.BatchRuntime
cons public ()
-meth public static javax.batch.operations.JobOperator getJobOperator()
+meth public static jakarta.batch.operations.JobOperator getJobOperator()
supr java.lang.Object
hfds logger,sourceClass
-CLSS public final !enum javax.batch.runtime.BatchStatus
-fld public final static javax.batch.runtime.BatchStatus ABANDONED
-fld public final static javax.batch.runtime.BatchStatus COMPLETED
-fld public final static javax.batch.runtime.BatchStatus FAILED
-fld public final static javax.batch.runtime.BatchStatus STARTED
-fld public final static javax.batch.runtime.BatchStatus STARTING
-fld public final static javax.batch.runtime.BatchStatus STOPPED
-fld public final static javax.batch.runtime.BatchStatus STOPPING
-meth public static javax.batch.runtime.BatchStatus valueOf(java.lang.String)
-meth public static javax.batch.runtime.BatchStatus[] values()
-supr java.lang.Enum
+CLSS public final !enum jakarta.batch.runtime.BatchStatus
+fld public final static jakarta.batch.runtime.BatchStatus ABANDONED
+fld public final static jakarta.batch.runtime.BatchStatus COMPLETED
+fld public final static jakarta.batch.runtime.BatchStatus FAILED
+fld public final static jakarta.batch.runtime.BatchStatus STARTED
+fld public final static jakarta.batch.runtime.BatchStatus STARTING
+fld public final static jakarta.batch.runtime.BatchStatus STOPPED
+fld public final static jakarta.batch.runtime.BatchStatus STOPPING
+meth public static jakarta.batch.runtime.BatchStatus valueOf(java.lang.String)
+meth public static jakarta.batch.runtime.BatchStatus[] values()
+supr java.lang.Enum
-CLSS public abstract interface javax.batch.runtime.JobExecution
+CLSS public abstract interface jakarta.batch.runtime.JobExecution
meth public abstract java.lang.String getExitStatus()
meth public abstract java.lang.String getJobName()
meth public abstract java.util.Date getCreateTime()
@@ -466,70 +466,70 @@ meth public abstract java.util.Date getEndTime()
meth public abstract java.util.Date getLastUpdatedTime()
meth public abstract java.util.Date getStartTime()
meth public abstract java.util.Properties getJobParameters()
-meth public abstract javax.batch.runtime.BatchStatus getBatchStatus()
+meth public abstract jakarta.batch.runtime.BatchStatus getBatchStatus()
meth public abstract long getExecutionId()
-CLSS public abstract interface javax.batch.runtime.JobInstance
+CLSS public abstract interface jakarta.batch.runtime.JobInstance
meth public abstract java.lang.String getJobName()
meth public abstract long getInstanceId()
-CLSS public abstract interface javax.batch.runtime.Metric
+CLSS public abstract interface jakarta.batch.runtime.Metric
innr public final static !enum MetricType
-meth public abstract javax.batch.runtime.Metric$MetricType getType()
+meth public abstract jakarta.batch.runtime.Metric$MetricType getType()
meth public abstract long getValue()
-CLSS public final static !enum javax.batch.runtime.Metric$MetricType
- outer javax.batch.runtime.Metric
-fld public final static javax.batch.runtime.Metric$MetricType COMMIT_COUNT
-fld public final static javax.batch.runtime.Metric$MetricType FILTER_COUNT
-fld public final static javax.batch.runtime.Metric$MetricType PROCESS_SKIP_COUNT
-fld public final static javax.batch.runtime.Metric$MetricType READ_COUNT
-fld public final static javax.batch.runtime.Metric$MetricType READ_SKIP_COUNT
-fld public final static javax.batch.runtime.Metric$MetricType ROLLBACK_COUNT
-fld public final static javax.batch.runtime.Metric$MetricType WRITE_COUNT
-fld public final static javax.batch.runtime.Metric$MetricType WRITE_SKIP_COUNT
-meth public static javax.batch.runtime.Metric$MetricType valueOf(java.lang.String)
-meth public static javax.batch.runtime.Metric$MetricType[] values()
-supr java.lang.Enum
+CLSS public final static !enum jakarta.batch.runtime.Metric$MetricType
+ outer jakarta.batch.runtime.Metric
+fld public final static jakarta.batch.runtime.Metric$MetricType COMMIT_COUNT
+fld public final static jakarta.batch.runtime.Metric$MetricType FILTER_COUNT
+fld public final static jakarta.batch.runtime.Metric$MetricType PROCESS_SKIP_COUNT
+fld public final static jakarta.batch.runtime.Metric$MetricType READ_COUNT
+fld public final static jakarta.batch.runtime.Metric$MetricType READ_SKIP_COUNT
+fld public final static jakarta.batch.runtime.Metric$MetricType ROLLBACK_COUNT
+fld public final static jakarta.batch.runtime.Metric$MetricType WRITE_COUNT
+fld public final static jakarta.batch.runtime.Metric$MetricType WRITE_SKIP_COUNT
+meth public static jakarta.batch.runtime.Metric$MetricType valueOf(java.lang.String)
+meth public static jakarta.batch.runtime.Metric$MetricType[] values()
+supr java.lang.Enum
-CLSS public abstract interface javax.batch.runtime.StepExecution
+CLSS public abstract interface jakarta.batch.runtime.StepExecution
meth public abstract java.io.Serializable getPersistentUserData()
meth public abstract java.lang.String getExitStatus()
meth public abstract java.lang.String getStepName()
meth public abstract java.util.Date getEndTime()
meth public abstract java.util.Date getStartTime()
-meth public abstract javax.batch.runtime.BatchStatus getBatchStatus()
-meth public abstract javax.batch.runtime.Metric[] getMetrics()
+meth public abstract jakarta.batch.runtime.BatchStatus getBatchStatus()
+meth public abstract jakarta.batch.runtime.Metric[] getMetrics()
meth public abstract long getStepExecutionId()
-CLSS public abstract interface javax.batch.runtime.context.JobContext
+CLSS public abstract interface jakarta.batch.runtime.context.JobContext
meth public abstract java.lang.Object getTransientUserData()
meth public abstract java.lang.String getExitStatus()
meth public abstract java.lang.String getJobName()
meth public abstract java.util.Properties getProperties()
-meth public abstract javax.batch.runtime.BatchStatus getBatchStatus()
+meth public abstract jakarta.batch.runtime.BatchStatus getBatchStatus()
meth public abstract long getExecutionId()
meth public abstract long getInstanceId()
meth public abstract void setExitStatus(java.lang.String)
meth public abstract void setTransientUserData(java.lang.Object)
-CLSS public abstract interface javax.batch.runtime.context.StepContext
+CLSS public abstract interface jakarta.batch.runtime.context.StepContext
meth public abstract java.io.Serializable getPersistentUserData()
meth public abstract java.lang.Exception getException()
meth public abstract java.lang.Object getTransientUserData()
meth public abstract java.lang.String getExitStatus()
meth public abstract java.lang.String getStepName()
meth public abstract java.util.Properties getProperties()
-meth public abstract javax.batch.runtime.BatchStatus getBatchStatus()
-meth public abstract javax.batch.runtime.Metric[] getMetrics()
+meth public abstract jakarta.batch.runtime.BatchStatus getBatchStatus()
+meth public abstract jakarta.batch.runtime.Metric[] getMetrics()
meth public abstract long getStepExecutionId()
meth public abstract void setExitStatus(java.lang.String)
meth public abstract void setPersistentUserData(java.io.Serializable)
meth public abstract void setTransientUserData(java.lang.Object)
-CLSS abstract interface javax.batch.runtime.context.package-info
+CLSS abstract interface jakarta.batch.runtime.context.package-info
-CLSS abstract interface javax.batch.runtime.package-info
+CLSS abstract interface jakarta.batch.runtime.package-info
CLSS public abstract interface !annotation javax.inject.Qualifier
anno 0 java.lang.annotation.Documented()
diff --git a/spring-batch-jsr352-tck/jsr352-tck-1.0/artifacts/jsr352-api-sigtest-java7.sig b/spring-batch-jsr352-tck/jsr352-tck-1.0/artifacts/jsr352-api-sigtest-java7.sig
index c44145691..763f5b10b 100644
--- a/spring-batch-jsr352-tck/jsr352-tck-1.0/artifacts/jsr352-api-sigtest-java7.sig
+++ b/spring-batch-jsr352-tck/jsr352-tck-1.0/artifacts/jsr352-api-sigtest-java7.sig
@@ -105,202 +105,202 @@ CLSS public abstract interface !annotation java.lang.annotation.Target
intf java.lang.annotation.Annotation
meth public abstract java.lang.annotation.ElementType[] value()
-CLSS public abstract javax.batch.api.AbstractBatchlet
+CLSS public abstract jakarta.batch.api.AbstractBatchlet
cons public ()
-intf javax.batch.api.Batchlet
+intf jakarta.batch.api.Batchlet
meth public abstract java.lang.String process() throws java.lang.Exception
meth public void stop() throws java.lang.Exception
supr java.lang.Object
-CLSS public abstract interface !annotation javax.batch.api.BatchProperty
+CLSS public abstract interface !annotation jakarta.batch.api.BatchProperty
anno 0 java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy value=RUNTIME)
anno 0 java.lang.annotation.Target(java.lang.annotation.ElementType[] value=[FIELD, METHOD, PARAMETER])
anno 0 javax.inject.Qualifier()
intf java.lang.annotation.Annotation
meth public abstract !hasdefault java.lang.String name()
-CLSS public abstract interface javax.batch.api.Batchlet
+CLSS public abstract interface jakarta.batch.api.Batchlet
meth public abstract java.lang.String process() throws java.lang.Exception
meth public abstract void stop() throws java.lang.Exception
-CLSS public abstract interface javax.batch.api.Decider
-meth public abstract java.lang.String decide(javax.batch.runtime.StepExecution[]) throws java.lang.Exception
+CLSS public abstract interface jakarta.batch.api.Decider
+meth public abstract java.lang.String decide(jakarta.batch.runtime.StepExecution[]) throws java.lang.Exception
-CLSS public abstract javax.batch.api.chunk.AbstractCheckpointAlgorithm
+CLSS public abstract jakarta.batch.api.chunk.AbstractCheckpointAlgorithm
cons public ()
-intf javax.batch.api.chunk.CheckpointAlgorithm
+intf jakarta.batch.api.chunk.CheckpointAlgorithm
meth public abstract boolean isReadyToCheckpoint() throws java.lang.Exception
meth public int checkpointTimeout() throws java.lang.Exception
meth public void beginCheckpoint() throws java.lang.Exception
meth public void endCheckpoint() throws java.lang.Exception
supr java.lang.Object
-CLSS public abstract javax.batch.api.chunk.AbstractItemReader
+CLSS public abstract jakarta.batch.api.chunk.AbstractItemReader
cons public ()
-intf javax.batch.api.chunk.ItemReader
+intf jakarta.batch.api.chunk.ItemReader
meth public abstract java.lang.Object readItem() throws java.lang.Exception
meth public java.io.Serializable checkpointInfo() throws java.lang.Exception
meth public void close() throws java.lang.Exception
meth public void open(java.io.Serializable) throws java.lang.Exception
supr java.lang.Object
-CLSS public abstract javax.batch.api.chunk.AbstractItemWriter
+CLSS public abstract jakarta.batch.api.chunk.AbstractItemWriter
cons public ()
-intf javax.batch.api.chunk.ItemWriter
+intf jakarta.batch.api.chunk.ItemWriter
meth public abstract void writeItems(java.util.List) throws java.lang.Exception
meth public java.io.Serializable checkpointInfo() throws java.lang.Exception
meth public void close() throws java.lang.Exception
meth public void open(java.io.Serializable) throws java.lang.Exception
supr java.lang.Object
-CLSS public abstract interface javax.batch.api.chunk.CheckpointAlgorithm
+CLSS public abstract interface jakarta.batch.api.chunk.CheckpointAlgorithm
meth public abstract boolean isReadyToCheckpoint() throws java.lang.Exception
meth public abstract int checkpointTimeout() throws java.lang.Exception
meth public abstract void beginCheckpoint() throws java.lang.Exception
meth public abstract void endCheckpoint() throws java.lang.Exception
-CLSS public abstract interface javax.batch.api.chunk.ItemProcessor
+CLSS public abstract interface jakarta.batch.api.chunk.ItemProcessor
meth public abstract java.lang.Object processItem(java.lang.Object) throws java.lang.Exception
-CLSS public abstract interface javax.batch.api.chunk.ItemReader
+CLSS public abstract interface jakarta.batch.api.chunk.ItemReader
meth public abstract java.io.Serializable checkpointInfo() throws java.lang.Exception
meth public abstract java.lang.Object readItem() throws java.lang.Exception
meth public abstract void close() throws java.lang.Exception
meth public abstract void open(java.io.Serializable) throws java.lang.Exception
-CLSS public abstract interface javax.batch.api.chunk.ItemWriter
+CLSS public abstract interface jakarta.batch.api.chunk.ItemWriter
meth public abstract java.io.Serializable checkpointInfo() throws java.lang.Exception
meth public abstract void close() throws java.lang.Exception
meth public abstract void open(java.io.Serializable) throws java.lang.Exception
meth public abstract void writeItems(java.util.List) throws java.lang.Exception
-CLSS public abstract javax.batch.api.chunk.listener.AbstractChunkListener
+CLSS public abstract jakarta.batch.api.chunk.listener.AbstractChunkListener
cons public ()
-intf javax.batch.api.chunk.listener.ChunkListener
+intf jakarta.batch.api.chunk.listener.ChunkListener
meth public void afterChunk() throws java.lang.Exception
meth public void beforeChunk() throws java.lang.Exception
meth public void onError(java.lang.Exception) throws java.lang.Exception
supr java.lang.Object
-CLSS public abstract javax.batch.api.chunk.listener.AbstractItemProcessListener
+CLSS public abstract jakarta.batch.api.chunk.listener.AbstractItemProcessListener
cons public ()
-intf javax.batch.api.chunk.listener.ItemProcessListener
+intf jakarta.batch.api.chunk.listener.ItemProcessListener
meth public void afterProcess(java.lang.Object,java.lang.Object) throws java.lang.Exception
meth public void beforeProcess(java.lang.Object) throws java.lang.Exception
meth public void onProcessError(java.lang.Object,java.lang.Exception) throws java.lang.Exception
supr java.lang.Object
-CLSS public abstract javax.batch.api.chunk.listener.AbstractItemReadListener
+CLSS public abstract jakarta.batch.api.chunk.listener.AbstractItemReadListener
cons public ()
-intf javax.batch.api.chunk.listener.ItemReadListener
+intf jakarta.batch.api.chunk.listener.ItemReadListener
meth public void afterRead(java.lang.Object) throws java.lang.Exception
meth public void beforeRead() throws java.lang.Exception
meth public void onReadError(java.lang.Exception) throws java.lang.Exception
supr java.lang.Object
-CLSS public abstract javax.batch.api.chunk.listener.AbstractItemWriteListener
+CLSS public abstract jakarta.batch.api.chunk.listener.AbstractItemWriteListener
cons public ()
-intf javax.batch.api.chunk.listener.ItemWriteListener
+intf jakarta.batch.api.chunk.listener.ItemWriteListener
meth public void afterWrite(java.util.List) throws java.lang.Exception
meth public void beforeWrite(java.util.List) throws java.lang.Exception
meth public void onWriteError(java.util.List,java.lang.Exception) throws java.lang.Exception
supr java.lang.Object
-CLSS public abstract interface javax.batch.api.chunk.listener.ChunkListener
+CLSS public abstract interface jakarta.batch.api.chunk.listener.ChunkListener
meth public abstract void afterChunk() throws java.lang.Exception
meth public abstract void beforeChunk() throws java.lang.Exception
meth public abstract void onError(java.lang.Exception) throws java.lang.Exception
-CLSS public abstract interface javax.batch.api.chunk.listener.ItemProcessListener
+CLSS public abstract interface jakarta.batch.api.chunk.listener.ItemProcessListener
meth public abstract void afterProcess(java.lang.Object,java.lang.Object) throws java.lang.Exception
meth public abstract void beforeProcess(java.lang.Object) throws java.lang.Exception
meth public abstract void onProcessError(java.lang.Object,java.lang.Exception) throws java.lang.Exception
-CLSS public abstract interface javax.batch.api.chunk.listener.ItemReadListener
+CLSS public abstract interface jakarta.batch.api.chunk.listener.ItemReadListener
meth public abstract void afterRead(java.lang.Object) throws java.lang.Exception
meth public abstract void beforeRead() throws java.lang.Exception
meth public abstract void onReadError(java.lang.Exception) throws java.lang.Exception
-CLSS public abstract interface javax.batch.api.chunk.listener.ItemWriteListener
+CLSS public abstract interface jakarta.batch.api.chunk.listener.ItemWriteListener
meth public abstract void afterWrite(java.util.List) throws java.lang.Exception
meth public abstract void beforeWrite(java.util.List) throws java.lang.Exception
meth public abstract void onWriteError(java.util.List,java.lang.Exception) throws java.lang.Exception
-CLSS public abstract interface javax.batch.api.chunk.listener.RetryProcessListener
+CLSS public abstract interface jakarta.batch.api.chunk.listener.RetryProcessListener
meth public abstract void onRetryProcessException(java.lang.Object,java.lang.Exception) throws java.lang.Exception
-CLSS public abstract interface javax.batch.api.chunk.listener.RetryReadListener
+CLSS public abstract interface jakarta.batch.api.chunk.listener.RetryReadListener
meth public abstract void onRetryReadException(java.lang.Exception) throws java.lang.Exception
-CLSS public abstract interface javax.batch.api.chunk.listener.RetryWriteListener
+CLSS public abstract interface jakarta.batch.api.chunk.listener.RetryWriteListener
meth public abstract void onRetryWriteException(java.util.List,java.lang.Exception) throws java.lang.Exception
-CLSS public abstract interface javax.batch.api.chunk.listener.SkipProcessListener
+CLSS public abstract interface jakarta.batch.api.chunk.listener.SkipProcessListener
meth public abstract void onSkipProcessItem(java.lang.Object,java.lang.Exception) throws java.lang.Exception
-CLSS public abstract interface javax.batch.api.chunk.listener.SkipReadListener
+CLSS public abstract interface jakarta.batch.api.chunk.listener.SkipReadListener
meth public abstract void onSkipReadItem(java.lang.Exception) throws java.lang.Exception
-CLSS public abstract interface javax.batch.api.chunk.listener.SkipWriteListener
+CLSS public abstract interface jakarta.batch.api.chunk.listener.SkipWriteListener
meth public abstract void onSkipWriteItem(java.util.List,java.lang.Exception) throws java.lang.Exception
-CLSS abstract interface javax.batch.api.chunk.listener.package-info
+CLSS abstract interface jakarta.batch.api.chunk.listener.package-info
-CLSS abstract interface javax.batch.api.chunk.package-info
+CLSS abstract interface jakarta.batch.api.chunk.package-info
-CLSS public abstract javax.batch.api.listener.AbstractJobListener
+CLSS public abstract jakarta.batch.api.listener.AbstractJobListener
cons public ()
-intf javax.batch.api.listener.JobListener
+intf jakarta.batch.api.listener.JobListener
meth public void afterJob() throws java.lang.Exception
meth public void beforeJob() throws java.lang.Exception
supr java.lang.Object
-CLSS public abstract javax.batch.api.listener.AbstractStepListener
+CLSS public abstract jakarta.batch.api.listener.AbstractStepListener
cons public ()
-intf javax.batch.api.listener.StepListener
+intf jakarta.batch.api.listener.StepListener
meth public void afterStep() throws java.lang.Exception
meth public void beforeStep() throws java.lang.Exception
supr java.lang.Object
-CLSS public abstract interface javax.batch.api.listener.JobListener
+CLSS public abstract interface jakarta.batch.api.listener.JobListener
meth public abstract void afterJob() throws java.lang.Exception
meth public abstract void beforeJob() throws java.lang.Exception
-CLSS public abstract interface javax.batch.api.listener.StepListener
+CLSS public abstract interface jakarta.batch.api.listener.StepListener
meth public abstract void afterStep() throws java.lang.Exception
meth public abstract void beforeStep() throws java.lang.Exception
-CLSS abstract interface javax.batch.api.listener.package-info
+CLSS abstract interface jakarta.batch.api.listener.package-info
-CLSS abstract interface javax.batch.api.package-info
+CLSS abstract interface jakarta.batch.api.package-info
-CLSS public abstract javax.batch.api.partition.AbstractPartitionAnalyzer
+CLSS public abstract jakarta.batch.api.partition.AbstractPartitionAnalyzer
cons public ()
-intf javax.batch.api.partition.PartitionAnalyzer
+intf jakarta.batch.api.partition.PartitionAnalyzer
meth public void analyzeCollectorData(java.io.Serializable) throws java.lang.Exception
-meth public void analyzeStatus(javax.batch.runtime.BatchStatus,java.lang.String) throws java.lang.Exception
+meth public void analyzeStatus(jakarta.batch.runtime.BatchStatus,java.lang.String) throws java.lang.Exception
supr java.lang.Object
-CLSS public abstract javax.batch.api.partition.AbstractPartitionReducer
+CLSS public abstract jakarta.batch.api.partition.AbstractPartitionReducer
cons public ()
-intf javax.batch.api.partition.PartitionReducer
-meth public void afterPartitionedStepCompletion(javax.batch.api.partition.PartitionReducer$PartitionStatus) throws java.lang.Exception
+intf jakarta.batch.api.partition.PartitionReducer
+meth public void afterPartitionedStepCompletion(jakarta.batch.api.partition.PartitionReducer$PartitionStatus) throws java.lang.Exception
meth public void beforePartitionedStepCompletion() throws java.lang.Exception
meth public void beginPartitionedStep() throws java.lang.Exception
meth public void rollbackPartitionedStep() throws java.lang.Exception
supr java.lang.Object
-CLSS public abstract interface javax.batch.api.partition.PartitionAnalyzer
+CLSS public abstract interface jakarta.batch.api.partition.PartitionAnalyzer
meth public abstract void analyzeCollectorData(java.io.Serializable) throws java.lang.Exception
-meth public abstract void analyzeStatus(javax.batch.runtime.BatchStatus,java.lang.String) throws java.lang.Exception
+meth public abstract void analyzeStatus(jakarta.batch.runtime.BatchStatus,java.lang.String) throws java.lang.Exception
-CLSS public abstract interface javax.batch.api.partition.PartitionCollector
+CLSS public abstract interface jakarta.batch.api.partition.PartitionCollector
meth public abstract java.io.Serializable collectPartitionData() throws java.lang.Exception
-CLSS public abstract interface javax.batch.api.partition.PartitionMapper
-meth public abstract javax.batch.api.partition.PartitionPlan mapPartitions() throws java.lang.Exception
+CLSS public abstract interface jakarta.batch.api.partition.PartitionMapper
+meth public abstract jakarta.batch.api.partition.PartitionPlan mapPartitions() throws java.lang.Exception
-CLSS public abstract interface javax.batch.api.partition.PartitionPlan
+CLSS public abstract interface jakarta.batch.api.partition.PartitionPlan
meth public abstract boolean getPartitionsOverride()
meth public abstract int getPartitions()
meth public abstract int getThreads()
@@ -310,9 +310,9 @@ meth public abstract void setPartitions(int)
meth public abstract void setPartitionsOverride(boolean)
meth public abstract void setThreads(int)
-CLSS public javax.batch.api.partition.PartitionPlanImpl
+CLSS public jakarta.batch.api.partition.PartitionPlanImpl
cons public ()
-intf javax.batch.api.partition.PartitionPlan
+intf jakarta.batch.api.partition.PartitionPlan
meth public boolean getPartitionsOverride()
meth public int getPartitions()
meth public int getThreads()
@@ -324,24 +324,24 @@ meth public void setThreads(int)
supr java.lang.Object
hfds override,partitionProperties,partitions,threads
-CLSS public abstract interface javax.batch.api.partition.PartitionReducer
+CLSS public abstract interface jakarta.batch.api.partition.PartitionReducer
innr public final static !enum PartitionStatus
-meth public abstract void afterPartitionedStepCompletion(javax.batch.api.partition.PartitionReducer$PartitionStatus) throws java.lang.Exception
+meth public abstract void afterPartitionedStepCompletion(jakarta.batch.api.partition.PartitionReducer$PartitionStatus) throws java.lang.Exception
meth public abstract void beforePartitionedStepCompletion() throws java.lang.Exception
meth public abstract void beginPartitionedStep() throws java.lang.Exception
meth public abstract void rollbackPartitionedStep() throws java.lang.Exception
-CLSS public final static !enum javax.batch.api.partition.PartitionReducer$PartitionStatus
- outer javax.batch.api.partition.PartitionReducer
-fld public final static javax.batch.api.partition.PartitionReducer$PartitionStatus COMMIT
-fld public final static javax.batch.api.partition.PartitionReducer$PartitionStatus ROLLBACK
-meth public static javax.batch.api.partition.PartitionReducer$PartitionStatus valueOf(java.lang.String)
-meth public static javax.batch.api.partition.PartitionReducer$PartitionStatus[] values()
-supr java.lang.Enum
+CLSS public final static !enum jakarta.batch.api.partition.PartitionReducer$PartitionStatus
+ outer jakarta.batch.api.partition.PartitionReducer
+fld public final static jakarta.batch.api.partition.PartitionReducer$PartitionStatus COMMIT
+fld public final static jakarta.batch.api.partition.PartitionReducer$PartitionStatus ROLLBACK
+meth public static jakarta.batch.api.partition.PartitionReducer$PartitionStatus valueOf(java.lang.String)
+meth public static jakarta.batch.api.partition.PartitionReducer$PartitionStatus[] values()
+supr java.lang.Enum
-CLSS abstract interface javax.batch.api.partition.package-info
+CLSS abstract interface jakarta.batch.api.partition.package-info
-CLSS public javax.batch.operations.BatchRuntimeException
+CLSS public jakarta.batch.operations.BatchRuntimeException
cons public ()
cons public (java.lang.String)
cons public (java.lang.String,java.lang.Throwable)
@@ -349,122 +349,122 @@ cons public (java.lang.Throwable)
supr java.lang.RuntimeException
hfds serialVersionUID
-CLSS public javax.batch.operations.JobExecutionAlreadyCompleteException
+CLSS public jakarta.batch.operations.JobExecutionAlreadyCompleteException
cons public ()
cons public (java.lang.String)
cons public (java.lang.String,java.lang.Throwable)
cons public (java.lang.Throwable)
-supr javax.batch.operations.BatchRuntimeException
+supr jakarta.batch.operations.BatchRuntimeException
hfds serialVersionUID
-CLSS public javax.batch.operations.JobExecutionIsRunningException
+CLSS public jakarta.batch.operations.JobExecutionIsRunningException
cons public ()
cons public (java.lang.String)
cons public (java.lang.String,java.lang.Throwable)
cons public (java.lang.Throwable)
-supr javax.batch.operations.BatchRuntimeException
+supr jakarta.batch.operations.BatchRuntimeException
hfds serialVersionUID
-CLSS public javax.batch.operations.JobExecutionNotMostRecentException
+CLSS public jakarta.batch.operations.JobExecutionNotMostRecentException
cons public ()
cons public (java.lang.String)
cons public (java.lang.String,java.lang.Throwable)
cons public (java.lang.Throwable)
-supr javax.batch.operations.BatchRuntimeException
+supr jakarta.batch.operations.BatchRuntimeException
hfds serialVersionUID
-CLSS public javax.batch.operations.JobExecutionNotRunningException
+CLSS public jakarta.batch.operations.JobExecutionNotRunningException
cons public ()
cons public (java.lang.String)
cons public (java.lang.String,java.lang.Throwable)
cons public (java.lang.Throwable)
-supr javax.batch.operations.BatchRuntimeException
+supr jakarta.batch.operations.BatchRuntimeException
hfds serialVersionUID
-CLSS public abstract interface javax.batch.operations.JobOperator
+CLSS public abstract interface jakarta.batch.operations.JobOperator
meth public abstract int getJobInstanceCount(java.lang.String)
meth public abstract java.util.List getRunningExecutions(java.lang.String)
-meth public abstract java.util.List getJobExecutions(javax.batch.runtime.JobInstance)
-meth public abstract java.util.List getJobInstances(java.lang.String,int,int)
-meth public abstract java.util.List getStepExecutions(long)
+meth public abstract java.util.List getJobExecutions(jakarta.batch.runtime.JobInstance)
+meth public abstract java.util.List getJobInstances(java.lang.String,int,int)
+meth public abstract java.util.List getStepExecutions(long)
meth public abstract java.util.Properties getParameters(long)
meth public abstract java.util.Set getJobNames()
-meth public abstract javax.batch.runtime.JobExecution getJobExecution(long)
-meth public abstract javax.batch.runtime.JobInstance getJobInstance(long)
+meth public abstract jakarta.batch.runtime.JobExecution getJobExecution(long)
+meth public abstract jakarta.batch.runtime.JobInstance getJobInstance(long)
meth public abstract long restart(long,java.util.Properties)
meth public abstract long start(java.lang.String,java.util.Properties)
meth public abstract void abandon(long)
meth public abstract void stop(long)
-CLSS public javax.batch.operations.JobRestartException
+CLSS public jakarta.batch.operations.JobRestartException
cons public ()
cons public (java.lang.String)
cons public (java.lang.String,java.lang.Throwable)
cons public (java.lang.Throwable)
-supr javax.batch.operations.BatchRuntimeException
+supr jakarta.batch.operations.BatchRuntimeException
hfds serialVersionUID
-CLSS public javax.batch.operations.JobSecurityException
+CLSS public jakarta.batch.operations.JobSecurityException
cons public ()
cons public (java.lang.String)
cons public (java.lang.String,java.lang.Throwable)
cons public (java.lang.Throwable)
-supr javax.batch.operations.BatchRuntimeException
+supr jakarta.batch.operations.BatchRuntimeException
hfds serialVersionUID
-CLSS public javax.batch.operations.JobStartException
+CLSS public jakarta.batch.operations.JobStartException
cons public ()
cons public (java.lang.String)
cons public (java.lang.String,java.lang.Throwable)
cons public (java.lang.Throwable)
-supr javax.batch.operations.BatchRuntimeException
+supr jakarta.batch.operations.BatchRuntimeException
hfds serialVersionUID
-CLSS public javax.batch.operations.NoSuchJobException
+CLSS public jakarta.batch.operations.NoSuchJobException
cons public ()
cons public (java.lang.String)
cons public (java.lang.String,java.lang.Throwable)
cons public (java.lang.Throwable)
-supr javax.batch.operations.BatchRuntimeException
+supr jakarta.batch.operations.BatchRuntimeException
hfds serialVersionUID
-CLSS public javax.batch.operations.NoSuchJobExecutionException
+CLSS public jakarta.batch.operations.NoSuchJobExecutionException
cons public ()
cons public (java.lang.String)
cons public (java.lang.String,java.lang.Throwable)
cons public (java.lang.Throwable)
-supr javax.batch.operations.BatchRuntimeException
+supr jakarta.batch.operations.BatchRuntimeException
hfds serialVersionUID
-CLSS public javax.batch.operations.NoSuchJobInstanceException
+CLSS public jakarta.batch.operations.NoSuchJobInstanceException
cons public ()
cons public (java.lang.String)
cons public (java.lang.String,java.lang.Throwable)
cons public (java.lang.Throwable)
-supr javax.batch.operations.BatchRuntimeException
+supr jakarta.batch.operations.BatchRuntimeException
hfds serialVersionUID
-CLSS abstract interface javax.batch.operations.package-info
+CLSS abstract interface jakarta.batch.operations.package-info
-CLSS public javax.batch.runtime.BatchRuntime
+CLSS public jakarta.batch.runtime.BatchRuntime
cons public ()
-meth public static javax.batch.operations.JobOperator getJobOperator()
+meth public static jakarta.batch.operations.JobOperator getJobOperator()
supr java.lang.Object
hfds logger,sourceClass
-CLSS public final !enum javax.batch.runtime.BatchStatus
-fld public final static javax.batch.runtime.BatchStatus ABANDONED
-fld public final static javax.batch.runtime.BatchStatus COMPLETED
-fld public final static javax.batch.runtime.BatchStatus FAILED
-fld public final static javax.batch.runtime.BatchStatus STARTED
-fld public final static javax.batch.runtime.BatchStatus STARTING
-fld public final static javax.batch.runtime.BatchStatus STOPPED
-fld public final static javax.batch.runtime.BatchStatus STOPPING
-meth public static javax.batch.runtime.BatchStatus valueOf(java.lang.String)
-meth public static javax.batch.runtime.BatchStatus[] values()
-supr java.lang.Enum
+CLSS public final !enum jakarta.batch.runtime.BatchStatus
+fld public final static jakarta.batch.runtime.BatchStatus ABANDONED
+fld public final static jakarta.batch.runtime.BatchStatus COMPLETED
+fld public final static jakarta.batch.runtime.BatchStatus FAILED
+fld public final static jakarta.batch.runtime.BatchStatus STARTED
+fld public final static jakarta.batch.runtime.BatchStatus STARTING
+fld public final static jakarta.batch.runtime.BatchStatus STOPPED
+fld public final static jakarta.batch.runtime.BatchStatus STOPPING
+meth public static jakarta.batch.runtime.BatchStatus valueOf(java.lang.String)
+meth public static jakarta.batch.runtime.BatchStatus[] values()
+supr java.lang.Enum
-CLSS public abstract interface javax.batch.runtime.JobExecution
+CLSS public abstract interface jakarta.batch.runtime.JobExecution
meth public abstract java.lang.String getExitStatus()
meth public abstract java.lang.String getJobName()
meth public abstract java.util.Date getCreateTime()
@@ -472,70 +472,70 @@ meth public abstract java.util.Date getEndTime()
meth public abstract java.util.Date getLastUpdatedTime()
meth public abstract java.util.Date getStartTime()
meth public abstract java.util.Properties getJobParameters()
-meth public abstract javax.batch.runtime.BatchStatus getBatchStatus()
+meth public abstract jakarta.batch.runtime.BatchStatus getBatchStatus()
meth public abstract long getExecutionId()
-CLSS public abstract interface javax.batch.runtime.JobInstance
+CLSS public abstract interface jakarta.batch.runtime.JobInstance
meth public abstract java.lang.String getJobName()
meth public abstract long getInstanceId()
-CLSS public abstract interface javax.batch.runtime.Metric
+CLSS public abstract interface jakarta.batch.runtime.Metric
innr public final static !enum MetricType
-meth public abstract javax.batch.runtime.Metric$MetricType getType()
+meth public abstract jakarta.batch.runtime.Metric$MetricType getType()
meth public abstract long getValue()
-CLSS public final static !enum javax.batch.runtime.Metric$MetricType
- outer javax.batch.runtime.Metric
-fld public final static javax.batch.runtime.Metric$MetricType COMMIT_COUNT
-fld public final static javax.batch.runtime.Metric$MetricType FILTER_COUNT
-fld public final static javax.batch.runtime.Metric$MetricType PROCESS_SKIP_COUNT
-fld public final static javax.batch.runtime.Metric$MetricType READ_COUNT
-fld public final static javax.batch.runtime.Metric$MetricType READ_SKIP_COUNT
-fld public final static javax.batch.runtime.Metric$MetricType ROLLBACK_COUNT
-fld public final static javax.batch.runtime.Metric$MetricType WRITE_COUNT
-fld public final static javax.batch.runtime.Metric$MetricType WRITE_SKIP_COUNT
-meth public static javax.batch.runtime.Metric$MetricType valueOf(java.lang.String)
-meth public static javax.batch.runtime.Metric$MetricType[] values()
-supr java.lang.Enum
+CLSS public final static !enum jakarta.batch.runtime.Metric$MetricType
+ outer jakarta.batch.runtime.Metric
+fld public final static jakarta.batch.runtime.Metric$MetricType COMMIT_COUNT
+fld public final static jakarta.batch.runtime.Metric$MetricType FILTER_COUNT
+fld public final static jakarta.batch.runtime.Metric$MetricType PROCESS_SKIP_COUNT
+fld public final static jakarta.batch.runtime.Metric$MetricType READ_COUNT
+fld public final static jakarta.batch.runtime.Metric$MetricType READ_SKIP_COUNT
+fld public final static jakarta.batch.runtime.Metric$MetricType ROLLBACK_COUNT
+fld public final static jakarta.batch.runtime.Metric$MetricType WRITE_COUNT
+fld public final static jakarta.batch.runtime.Metric$MetricType WRITE_SKIP_COUNT
+meth public static jakarta.batch.runtime.Metric$MetricType valueOf(java.lang.String)
+meth public static jakarta.batch.runtime.Metric$MetricType[] values()
+supr java.lang.Enum
-CLSS public abstract interface javax.batch.runtime.StepExecution
+CLSS public abstract interface jakarta.batch.runtime.StepExecution
meth public abstract java.io.Serializable getPersistentUserData()
meth public abstract java.lang.String getExitStatus()
meth public abstract java.lang.String getStepName()
meth public abstract java.util.Date getEndTime()
meth public abstract java.util.Date getStartTime()
-meth public abstract javax.batch.runtime.BatchStatus getBatchStatus()
-meth public abstract javax.batch.runtime.Metric[] getMetrics()
+meth public abstract jakarta.batch.runtime.BatchStatus getBatchStatus()
+meth public abstract jakarta.batch.runtime.Metric[] getMetrics()
meth public abstract long getStepExecutionId()
-CLSS public abstract interface javax.batch.runtime.context.JobContext
+CLSS public abstract interface jakarta.batch.runtime.context.JobContext
meth public abstract java.lang.Object getTransientUserData()
meth public abstract java.lang.String getExitStatus()
meth public abstract java.lang.String getJobName()
meth public abstract java.util.Properties getProperties()
-meth public abstract javax.batch.runtime.BatchStatus getBatchStatus()
+meth public abstract jakarta.batch.runtime.BatchStatus getBatchStatus()
meth public abstract long getExecutionId()
meth public abstract long getInstanceId()
meth public abstract void setExitStatus(java.lang.String)
meth public abstract void setTransientUserData(java.lang.Object)
-CLSS public abstract interface javax.batch.runtime.context.StepContext
+CLSS public abstract interface jakarta.batch.runtime.context.StepContext
meth public abstract java.io.Serializable getPersistentUserData()
meth public abstract java.lang.Exception getException()
meth public abstract java.lang.Object getTransientUserData()
meth public abstract java.lang.String getExitStatus()
meth public abstract java.lang.String getStepName()
meth public abstract java.util.Properties getProperties()
-meth public abstract javax.batch.runtime.BatchStatus getBatchStatus()
-meth public abstract javax.batch.runtime.Metric[] getMetrics()
+meth public abstract jakarta.batch.runtime.BatchStatus getBatchStatus()
+meth public abstract jakarta.batch.runtime.Metric[] getMetrics()
meth public abstract long getStepExecutionId()
meth public abstract void setExitStatus(java.lang.String)
meth public abstract void setPersistentUserData(java.io.Serializable)
meth public abstract void setTransientUserData(java.lang.Object)
-CLSS abstract interface javax.batch.runtime.context.package-info
+CLSS abstract interface jakarta.batch.runtime.context.package-info
-CLSS abstract interface javax.batch.runtime.package-info
+CLSS abstract interface jakarta.batch.runtime.package-info
CLSS public abstract interface !annotation javax.inject.Qualifier
anno 0 java.lang.annotation.Documented()
diff --git a/spring-batch-jsr352-tck/jsr352-tck-1.0/jsr352-tck.properties b/spring-batch-jsr352-tck/jsr352-tck-1.0/jsr352-tck.properties
index fa0cb0467..9a835beee 100644
--- a/spring-batch-jsr352-tck/jsr352-tck-1.0/jsr352-tck.properties
+++ b/spring-batch-jsr352-tck/jsr352-tck-1.0/jsr352-tck.properties
@@ -3,7 +3,7 @@
# For example: batch.impl.classes=$HOME/foo/lib/classes:$HOME/foo/lib/foo.jar:$HOME/foo/lib/batch-api.jar
#
# Another example, for the RI root dir in the same parent directory as the TCK root dir, one could use:
-#batch.impl.classes=../jsr352-ri-1.0/javax.batch.api.jar:../jsr352-ri-1.0/jsr352-SE-RI-runtime.jar:../jsr352-ri-1.0/jsr352-RI-spi.jar:../jsr352-ri-1.0/derby.jar
+#batch.impl.classes=../jsr352-ri-1.0/jakarta.batch.api.jar:../jsr352-ri-1.0/jsr352-SE-RI-runtime.jar:../jsr352-ri-1.0/jsr352-RI-spi.jar:../jsr352-ri-1.0/derby.jar
batch.impl.classes=
# Add JVM options to pass to TestNG here. JVM arguments should be separated by spaces, as this will provided to the TestNG invocation
diff --git a/spring-batch-jsr352-tck/pom.xml b/spring-batch-jsr352-tck/pom.xml
index 38e07d1bc..88356c4cd 100644
--- a/spring-batch-jsr352-tck/pom.xml
+++ b/spring-batch-jsr352-tck/pom.xml
@@ -16,9 +16,9 @@
- javax.batch
- javax.batch-api
- ${javax.batch-api.version}
+ jakarta.batch
+ jakarta.batch-api
+ ${jakarta.batch-api.version}
org.springframework.batch
diff --git a/spring-batch-samples/pom.xml b/spring-batch-samples/pom.xml
index 6485afe16..663088aa3 100644
--- a/spring-batch-samples/pom.xml
+++ b/spring-batch-samples/pom.xml
@@ -47,9 +47,9 @@
${commons-io.version}
- javax.mail
- javax.mail-api
- ${javax.mail-api.version}
+ jakarta.mail
+ jakarta.mail-api
+ ${jakarta.mail-api.version}
org.aspectj
@@ -63,8 +63,8 @@
org.hibernate
- hibernate-entitymanager
- ${hibernate-entitymanager.version}
+ hibernate-core-jakarta
+ ${hibernate-core-jakarta.version}
org.apache.commons
@@ -72,19 +72,19 @@
${commons-dbcp2.version}
- javax.inject
- javax.inject
- ${javax.inject.version}
+ jakarta.inject
+ jakarta.inject-api
+ ${jakarta.inject-api.version}
org.apache.activemq
- activemq-client
- ${activemq.version}
+ artemis-jakarta-client
+ ${artemis.version}
org.apache.activemq
- activemq-broker
- ${activemq.version}
+ artemis-server
+ ${artemis.version}
org.springframework.data
@@ -117,15 +117,20 @@
${spring-integration.version}
- javax.validation
- validation-api
- ${validation-api.version}
+ jakarta.validation
+ jakarta.validation-api
+ ${jakarta.validation-api.version}
org.hibernate.validator
hibernate-validator
${hibernate-validator.version}
+
+ org.glassfish
+ jakarta.el
+ ${jakarta.el.version}
+
org.mongodb
mongodb-driver-sync
@@ -187,9 +192,9 @@
test
- org.glassfish
- javax.el
- ${javax.el.version}
+ jakarta.el
+ jakarta.el-api
+ ${jakarta.el-api.version}
test
@@ -198,12 +203,6 @@
${xstream.version}
test
-
- org.apache.activemq
- activemq-kahadb-store
- ${activemq.version}
- test
-
org.hsqldb
hsqldb
diff --git a/spring-batch-samples/src/main/java/org/springframework/batch/sample/config/DataSourceConfiguration.java b/spring-batch-samples/src/main/java/org/springframework/batch/sample/config/DataSourceConfiguration.java
index e2f7a9dfc..2de333feb 100644
--- a/spring-batch-samples/src/main/java/org/springframework/batch/sample/config/DataSourceConfiguration.java
+++ b/spring-batch-samples/src/main/java/org/springframework/batch/sample/config/DataSourceConfiguration.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2012-2017 the original author or authors.
+ * Copyright 2012-2021 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.
@@ -15,7 +15,7 @@
*/
package org.springframework.batch.sample.config;
-import javax.annotation.PostConstruct;
+import jakarta.annotation.PostConstruct;
import javax.sql.DataSource;
import org.apache.commons.dbcp2.BasicDataSource;
@@ -31,6 +31,7 @@ import org.springframework.jdbc.datasource.init.ResourceDatabasePopulator;
/**
* @author Dave Syer
+ * @author Mahmoud Ben Hassine
*
*/
@Configuration
diff --git a/spring-batch-samples/src/main/java/org/springframework/batch/sample/domain/mail/internal/TestMailSender.java b/spring-batch-samples/src/main/java/org/springframework/batch/sample/domain/mail/internal/TestMailSender.java
index 662c28f0c..bf763a807 100644
--- a/spring-batch-samples/src/main/java/org/springframework/batch/sample/domain/mail/internal/TestMailSender.java
+++ b/spring-batch-samples/src/main/java/org/springframework/batch/sample/domain/mail/internal/TestMailSender.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006-2010 the original author or authors.
+ * Copyright 2006-2021 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.
@@ -20,7 +20,7 @@ import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
-import javax.mail.MessagingException;
+import jakarta.mail.MessagingException;
import org.springframework.mail.MailException;
import org.springframework.mail.MailSendException;
@@ -30,6 +30,7 @@ import org.springframework.mail.SimpleMailMessage;
/**
* @author Dan Garrette
* @author Dave Syer
+ * @author Mahmoud Ben Hassine
*
* @since 2.1
*/
diff --git a/spring-batch-samples/src/main/java/org/springframework/batch/sample/domain/person/PersonService.java b/spring-batch-samples/src/main/java/org/springframework/batch/sample/domain/person/PersonService.java
index 4dbdc8058..8b1afdc32 100644
--- a/spring-batch-samples/src/main/java/org/springframework/batch/sample/domain/person/PersonService.java
+++ b/spring-batch-samples/src/main/java/org/springframework/batch/sample/domain/person/PersonService.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006-2014 the original author or authors.
+ * Copyright 2006-2021 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.
@@ -24,10 +24,11 @@ import org.springframework.batch.sample.domain.order.Address;
/**
* Custom class that contains logic that would normally be be contained in
* {@link org.springframework.batch.item.ItemReader} and
- * {@link javax.batch.api.chunk.ItemWriter}.
+ * {@link jakarta.batch.api.chunk.ItemWriter}.
*
* @author tomas.slanina
* @author Robert Kasanicky
+ * @author Mahmoud Ben Hassine
*/
public class PersonService {
private static final int GENERATION_LIMIT = 10;
diff --git a/spring-batch-samples/src/main/java/org/springframework/batch/sample/domain/trade/CustomerCredit.java b/spring-batch-samples/src/main/java/org/springframework/batch/sample/domain/trade/CustomerCredit.java
index e0bcdd90b..fe6602e77 100644
--- a/spring-batch-samples/src/main/java/org/springframework/batch/sample/domain/trade/CustomerCredit.java
+++ b/spring-batch-samples/src/main/java/org/springframework/batch/sample/domain/trade/CustomerCredit.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006-2007 the original author or authors.
+ * Copyright 2006-2021 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.
@@ -18,9 +18,9 @@ package org.springframework.batch.sample.domain.trade;
import java.math.BigDecimal;
-import javax.persistence.Entity;
-import javax.persistence.Id;
-import javax.persistence.Table;
+import jakarta.persistence.Entity;
+import jakarta.persistence.Id;
+import jakarta.persistence.Table;
@Entity
@Table(name = "CUSTOMER")
diff --git a/spring-batch-samples/src/main/java/org/springframework/batch/sample/jsr352/JsrSampleBatchlet.java b/spring-batch-samples/src/main/java/org/springframework/batch/sample/jsr352/JsrSampleBatchlet.java
index 7cf728506..75c4ce441 100644
--- a/spring-batch-samples/src/main/java/org/springframework/batch/sample/jsr352/JsrSampleBatchlet.java
+++ b/spring-batch-samples/src/main/java/org/springframework/batch/sample/jsr352/JsrSampleBatchlet.java
@@ -18,13 +18,13 @@ package org.springframework.batch.sample.jsr352;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import javax.batch.api.AbstractBatchlet;
-import javax.batch.api.BatchProperty;
-import javax.inject.Inject;
+import jakarta.batch.api.AbstractBatchlet;
+import jakarta.batch.api.BatchProperty;
+import jakarta.inject.Inject;
/**
*
- * Sample {@link javax.batch.api.Batchlet} implementation.
+ * Sample {@link jakarta.batch.api.Batchlet} implementation.
*
*
* @since 3.0
diff --git a/spring-batch-samples/src/main/java/org/springframework/batch/sample/jsr352/JsrSampleItemProcessor.java b/spring-batch-samples/src/main/java/org/springframework/batch/sample/jsr352/JsrSampleItemProcessor.java
index e172a4cc7..4429592ed 100644
--- a/spring-batch-samples/src/main/java/org/springframework/batch/sample/jsr352/JsrSampleItemProcessor.java
+++ b/spring-batch-samples/src/main/java/org/springframework/batch/sample/jsr352/JsrSampleItemProcessor.java
@@ -18,11 +18,11 @@ package org.springframework.batch.sample.jsr352;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import javax.batch.api.chunk.ItemProcessor;
+import jakarta.batch.api.chunk.ItemProcessor;
/**
*
- * Sample {@link javax.batch.api.chunk.ItemProcessor} implementation.
+ * Sample {@link jakarta.batch.api.chunk.ItemProcessor} implementation.
*
*
* @since 3.0
diff --git a/spring-batch-samples/src/main/java/org/springframework/batch/sample/jsr352/JsrSampleItemReader.java b/spring-batch-samples/src/main/java/org/springframework/batch/sample/jsr352/JsrSampleItemReader.java
index d2d1fba72..6100980da 100644
--- a/spring-batch-samples/src/main/java/org/springframework/batch/sample/jsr352/JsrSampleItemReader.java
+++ b/spring-batch-samples/src/main/java/org/springframework/batch/sample/jsr352/JsrSampleItemReader.java
@@ -17,14 +17,14 @@ package org.springframework.batch.sample.jsr352;
import java.util.ArrayList;
import java.util.List;
-import javax.batch.api.chunk.AbstractItemReader;
+import jakarta.batch.api.chunk.AbstractItemReader;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
/**
*
- * Sample {@link javax.batch.api.chunk.ItemReader} implementation.
+ * Sample {@link jakarta.batch.api.chunk.ItemReader} implementation.
*
*
* @since 3.0
diff --git a/spring-batch-samples/src/main/java/org/springframework/batch/sample/jsr352/JsrSampleItemWriter.java b/spring-batch-samples/src/main/java/org/springframework/batch/sample/jsr352/JsrSampleItemWriter.java
index 787ee97d2..a5dd77c4b 100644
--- a/spring-batch-samples/src/main/java/org/springframework/batch/sample/jsr352/JsrSampleItemWriter.java
+++ b/spring-batch-samples/src/main/java/org/springframework/batch/sample/jsr352/JsrSampleItemWriter.java
@@ -18,12 +18,12 @@ package org.springframework.batch.sample.jsr352;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import javax.batch.api.chunk.AbstractItemWriter;
+import jakarta.batch.api.chunk.AbstractItemWriter;
import java.util.List;
/**
*
- * Sample {@link javax.batch.api.chunk.ItemWriter} implementation.
+ * Sample {@link jakarta.batch.api.chunk.ItemWriter} implementation.
*
*
* @since 3.0
diff --git a/spring-batch-samples/src/main/java/org/springframework/batch/sample/jsr352/JsrSampleTasklet.java b/spring-batch-samples/src/main/java/org/springframework/batch/sample/jsr352/JsrSampleTasklet.java
index 1b11a215e..9101cc6c9 100644
--- a/spring-batch-samples/src/main/java/org/springframework/batch/sample/jsr352/JsrSampleTasklet.java
+++ b/spring-batch-samples/src/main/java/org/springframework/batch/sample/jsr352/JsrSampleTasklet.java
@@ -23,8 +23,8 @@ import org.springframework.batch.core.step.tasklet.Tasklet;
import org.springframework.batch.repeat.RepeatStatus;
import org.springframework.lang.Nullable;
-import javax.batch.api.BatchProperty;
-import javax.inject.Inject;
+import jakarta.batch.api.BatchProperty;
+import jakarta.inject.Inject;
/**
*
diff --git a/spring-batch-samples/src/main/java/org/springframework/batch/sample/metrics/PrometheusConfiguration.java b/spring-batch-samples/src/main/java/org/springframework/batch/sample/metrics/PrometheusConfiguration.java
index b073a1cbf..6c5c226c6 100644
--- a/spring-batch-samples/src/main/java/org/springframework/batch/sample/metrics/PrometheusConfiguration.java
+++ b/spring-batch-samples/src/main/java/org/springframework/batch/sample/metrics/PrometheusConfiguration.java
@@ -1,8 +1,23 @@
+/*
+ * Copyright 2021 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.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
package org.springframework.batch.sample.metrics;
import java.util.HashMap;
import java.util.Map;
-import javax.annotation.PostConstruct;
+import jakarta.annotation.PostConstruct;
import io.micrometer.core.instrument.Metrics;
import io.micrometer.prometheus.PrometheusConfig;
diff --git a/spring-batch-samples/src/main/java/org/springframework/batch/sample/remotechunking/ManagerConfiguration.java b/spring-batch-samples/src/main/java/org/springframework/batch/sample/remotechunking/ManagerConfiguration.java
index da80c327c..f3e54a789 100644
--- a/spring-batch-samples/src/main/java/org/springframework/batch/sample/remotechunking/ManagerConfiguration.java
+++ b/spring-batch-samples/src/main/java/org/springframework/batch/sample/remotechunking/ManagerConfiguration.java
@@ -17,7 +17,8 @@ package org.springframework.batch.sample.remotechunking;
import java.util.Arrays;
-import org.apache.activemq.ActiveMQConnectionFactory;
+import jakarta.jms.JMSException;
+import org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory;
import org.springframework.batch.core.Job;
import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing;
@@ -64,10 +65,9 @@ public class ManagerConfiguration {
private RemoteChunkingManagerStepBuilderFactory managerStepBuilderFactory;
@Bean
- public ActiveMQConnectionFactory connectionFactory() {
+ public ActiveMQConnectionFactory connectionFactory() throws JMSException {
ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory();
connectionFactory.setBrokerURL(this.brokerUrl);
- connectionFactory.setTrustAllPackages(true);
return connectionFactory;
}
diff --git a/spring-batch-samples/src/main/java/org/springframework/batch/sample/remotechunking/WorkerConfiguration.java b/spring-batch-samples/src/main/java/org/springframework/batch/sample/remotechunking/WorkerConfiguration.java
index 91995366f..bfe3d0d6a 100644
--- a/spring-batch-samples/src/main/java/org/springframework/batch/sample/remotechunking/WorkerConfiguration.java
+++ b/spring-batch-samples/src/main/java/org/springframework/batch/sample/remotechunking/WorkerConfiguration.java
@@ -15,7 +15,8 @@
*/
package org.springframework.batch.sample.remotechunking;
-import org.apache.activemq.ActiveMQConnectionFactory;
+import jakarta.jms.JMSException;
+import org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory;
import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing;
import org.springframework.batch.integration.chunk.RemoteChunkingWorkerBuilder;
@@ -61,10 +62,9 @@ public class WorkerConfiguration {
private RemoteChunkingWorkerBuilder remoteChunkingWorkerBuilder;
@Bean
- public ActiveMQConnectionFactory connectionFactory() {
+ public ActiveMQConnectionFactory connectionFactory() throws JMSException {
ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory();
connectionFactory.setBrokerURL(this.brokerUrl);
- connectionFactory.setTrustAllPackages(true);
return connectionFactory;
}
diff --git a/spring-batch-samples/src/main/java/org/springframework/batch/sample/remotepartitioning/BrokerConfiguration.java b/spring-batch-samples/src/main/java/org/springframework/batch/sample/remotepartitioning/BrokerConfiguration.java
index 60d627c09..b47377390 100644
--- a/spring-batch-samples/src/main/java/org/springframework/batch/sample/remotepartitioning/BrokerConfiguration.java
+++ b/spring-batch-samples/src/main/java/org/springframework/batch/sample/remotepartitioning/BrokerConfiguration.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2018 the original author or authors.
+ * Copyright 2018-2021 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.
@@ -16,7 +16,8 @@
package org.springframework.batch.sample.remotepartitioning;
-import org.apache.activemq.ActiveMQConnectionFactory;
+import jakarta.jms.JMSException;
+import org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
@@ -34,10 +35,9 @@ public class BrokerConfiguration {
private String brokerUrl;
@Bean
- public ActiveMQConnectionFactory connectionFactory() {
+ public ActiveMQConnectionFactory connectionFactory() throws JMSException {
ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory();
connectionFactory.setBrokerURL(this.brokerUrl);
- connectionFactory.setTrustAllPackages(true);
return connectionFactory;
}
diff --git a/spring-batch-samples/src/main/java/org/springframework/batch/sample/remotepartitioning/aggregating/ManagerConfiguration.java b/spring-batch-samples/src/main/java/org/springframework/batch/sample/remotepartitioning/aggregating/ManagerConfiguration.java
index 07078272b..ce118b620 100644
--- a/spring-batch-samples/src/main/java/org/springframework/batch/sample/remotepartitioning/aggregating/ManagerConfiguration.java
+++ b/spring-batch-samples/src/main/java/org/springframework/batch/sample/remotepartitioning/aggregating/ManagerConfiguration.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2018-2019 the original author or authors.
+ * Copyright 2018-2021 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.
@@ -15,7 +15,7 @@
*/
package org.springframework.batch.sample.remotepartitioning.aggregating;
-import org.apache.activemq.ActiveMQConnectionFactory;
+import org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory;
import org.springframework.batch.core.Job;
import org.springframework.batch.core.Step;
diff --git a/spring-batch-samples/src/main/java/org/springframework/batch/sample/remotepartitioning/aggregating/WorkerConfiguration.java b/spring-batch-samples/src/main/java/org/springframework/batch/sample/remotepartitioning/aggregating/WorkerConfiguration.java
index ad756f3c0..7658feec5 100644
--- a/spring-batch-samples/src/main/java/org/springframework/batch/sample/remotepartitioning/aggregating/WorkerConfiguration.java
+++ b/spring-batch-samples/src/main/java/org/springframework/batch/sample/remotepartitioning/aggregating/WorkerConfiguration.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2018-2019 the original author or authors.
+ * Copyright 2018-2021 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.
@@ -15,7 +15,7 @@
*/
package org.springframework.batch.sample.remotepartitioning.aggregating;
-import org.apache.activemq.ActiveMQConnectionFactory;
+import org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory;
import org.springframework.batch.core.Step;
import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing;
diff --git a/spring-batch-samples/src/main/java/org/springframework/batch/sample/remotepartitioning/polling/ManagerConfiguration.java b/spring-batch-samples/src/main/java/org/springframework/batch/sample/remotepartitioning/polling/ManagerConfiguration.java
index b5e3beff9..ca032809d 100644
--- a/spring-batch-samples/src/main/java/org/springframework/batch/sample/remotepartitioning/polling/ManagerConfiguration.java
+++ b/spring-batch-samples/src/main/java/org/springframework/batch/sample/remotepartitioning/polling/ManagerConfiguration.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2018-2019 the original author or authors.
+ * Copyright 2018-2021 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.
@@ -15,7 +15,7 @@
*/
package org.springframework.batch.sample.remotepartitioning.polling;
-import org.apache.activemq.ActiveMQConnectionFactory;
+import org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory;
import org.springframework.batch.core.Job;
import org.springframework.batch.core.Step;
diff --git a/spring-batch-samples/src/main/java/org/springframework/batch/sample/remotepartitioning/polling/WorkerConfiguration.java b/spring-batch-samples/src/main/java/org/springframework/batch/sample/remotepartitioning/polling/WorkerConfiguration.java
index c0b2d9761..310bec4a2 100644
--- a/spring-batch-samples/src/main/java/org/springframework/batch/sample/remotepartitioning/polling/WorkerConfiguration.java
+++ b/spring-batch-samples/src/main/java/org/springframework/batch/sample/remotepartitioning/polling/WorkerConfiguration.java
@@ -15,7 +15,7 @@
*/
package org.springframework.batch.sample.remotepartitioning.polling;
-import org.apache.activemq.ActiveMQConnectionFactory;
+import org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory;
import org.springframework.batch.core.Step;
import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing;
diff --git a/spring-batch-samples/src/main/java/org/springframework/batch/sample/validation/domain/Person.java b/spring-batch-samples/src/main/java/org/springframework/batch/sample/validation/domain/Person.java
index ce28a2c0e..2d9198251 100644
--- a/spring-batch-samples/src/main/java/org/springframework/batch/sample/validation/domain/Person.java
+++ b/spring-batch-samples/src/main/java/org/springframework/batch/sample/validation/domain/Person.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2018 the original author or authors.
+ * Copyright 2018-2021 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.
@@ -16,7 +16,7 @@
package org.springframework.batch.sample.validation.domain;
-import javax.validation.constraints.NotEmpty;
+import jakarta.validation.constraints.NotEmpty;
/**
* @author Mahmoud Ben Hassine
diff --git a/spring-batch-samples/src/test/java/org/springframework/batch/sample/RemoteChunkingJobFunctionalTests.java b/spring-batch-samples/src/test/java/org/springframework/batch/sample/RemoteChunkingJobFunctionalTests.java
index 70bee7997..eb13a9945 100644
--- a/spring-batch-samples/src/test/java/org/springframework/batch/sample/RemoteChunkingJobFunctionalTests.java
+++ b/spring-batch-samples/src/test/java/org/springframework/batch/sample/RemoteChunkingJobFunctionalTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2018-2019 the original author or authors.
+ * Copyright 2018-2021 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.
@@ -15,7 +15,10 @@
*/
package org.springframework.batch.sample;
-import org.apache.activemq.broker.BrokerService;
+import org.apache.activemq.artemis.core.config.Configuration;
+import org.apache.activemq.artemis.core.config.impl.ConfigurationImpl;
+import org.apache.activemq.artemis.core.server.embedded.EmbeddedActiveMQ;
+import org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
@@ -48,22 +51,23 @@ public class RemoteChunkingJobFunctionalTests {
private static final String BROKER_DATA_DIRECTORY = "target/activemq-data";
- @Value("${broker.url}")
- private String brokerUrl;
-
@Autowired
private JobLauncherTestUtils jobLauncherTestUtils;
- private BrokerService brokerService;
+ private static EmbeddedActiveMQ brokerService;
private AnnotationConfigApplicationContext workerApplicationContext;
@Before
public void setUp() throws Exception {
- this.brokerService = new BrokerService();
- this.brokerService.addConnector(this.brokerUrl);
- this.brokerService.setDataDirectory(BROKER_DATA_DIRECTORY);
- this.brokerService.start();
+ Configuration configuration =
+ new ConfigurationImpl()
+ .addAcceptorConfiguration("jms", "tcp://localhost:61616")
+ .setPersistenceEnabled(false)
+ .setSecurityEnabled(false)
+ .setJMXManagementEnabled(false)
+ .setJournalDatasync(false);
+ this.brokerService = new EmbeddedActiveMQ().setConfiguration(configuration).start();
this.workerApplicationContext = new AnnotationConfigApplicationContext(WorkerConfiguration.class);
}
diff --git a/spring-batch-samples/src/test/java/org/springframework/batch/sample/RemotePartitioningJobFunctionalTests.java b/spring-batch-samples/src/test/java/org/springframework/batch/sample/RemotePartitioningJobFunctionalTests.java
index d594cc21c..13cc92319 100644
--- a/spring-batch-samples/src/test/java/org/springframework/batch/sample/RemotePartitioningJobFunctionalTests.java
+++ b/spring-batch-samples/src/test/java/org/springframework/batch/sample/RemotePartitioningJobFunctionalTests.java
@@ -17,7 +17,9 @@ package org.springframework.batch.sample;
import javax.sql.DataSource;
-import org.apache.activemq.broker.BrokerService;
+import org.apache.activemq.artemis.core.config.Configuration;
+import org.apache.activemq.artemis.core.config.impl.ConfigurationImpl;
+import org.apache.activemq.artemis.core.server.embedded.EmbeddedActiveMQ;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
@@ -55,7 +57,7 @@ public abstract class RemotePartitioningJobFunctionalTests {
@Autowired
private DataSource dataSource;
- private BrokerService brokerService;
+ private EmbeddedActiveMQ brokerService;
private AnnotationConfigApplicationContext workerApplicationContext;
@@ -63,10 +65,14 @@ public abstract class RemotePartitioningJobFunctionalTests {
@Before
public void setUp() throws Exception {
- this.brokerService = new BrokerService();
- this.brokerService.addConnector(this.brokerUrl);
- this.brokerService.setDataDirectory(BROKER_DATA_DIRECTORY);
- this.brokerService.start();
+ Configuration configuration =
+ new ConfigurationImpl()
+ .addAcceptorConfiguration("jms", "tcp://localhost:61617")
+ .setPersistenceEnabled(false)
+ .setSecurityEnabled(false)
+ .setJMXManagementEnabled(false)
+ .setJournalDatasync(false);
+ this.brokerService = new EmbeddedActiveMQ().setConfiguration(configuration).start();
ResourceDatabasePopulator databasePopulator = new ResourceDatabasePopulator();
databasePopulator.addScript(new ClassPathResource("/org/springframework/batch/core/schema-drop-hsqldb.sql"));
databasePopulator.addScript(new ClassPathResource("/org/springframework/batch/core/schema-hsqldb.sql"));
diff --git a/spring-batch-samples/src/test/java/org/springframework/batch/sample/jsr352/JsrConfigSampleTests.java b/spring-batch-samples/src/test/java/org/springframework/batch/sample/jsr352/JsrConfigSampleTests.java
index de52531d0..8cd088d17 100644
--- a/spring-batch-samples/src/test/java/org/springframework/batch/sample/jsr352/JsrConfigSampleTests.java
+++ b/spring-batch-samples/src/test/java/org/springframework/batch/sample/jsr352/JsrConfigSampleTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2014 the original author or authors.
+ * Copyright 2014-2021 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.
@@ -18,10 +18,10 @@ package org.springframework.batch.sample.jsr352;
import org.junit.Before;
import org.junit.Test;
-import javax.batch.operations.JobOperator;
-import javax.batch.runtime.BatchRuntime;
-import javax.batch.runtime.BatchStatus;
-import javax.batch.runtime.JobExecution;
+import jakarta.batch.operations.JobOperator;
+import jakarta.batch.runtime.BatchRuntime;
+import jakarta.batch.runtime.BatchStatus;
+import jakarta.batch.runtime.JobExecution;
import java.util.Properties;
import static org.junit.Assert.assertTrue;
@@ -33,6 +33,7 @@ import static org.junit.Assert.assertTrue;
*
* @since 3.0
* @author Chris Schaefer
+ * @author Mahmoud Ben Hassine
*/
public class JsrConfigSampleTests {
private Properties properties = new Properties();
diff --git a/spring-batch-test/src/main/java/org/springframework/batch/test/JsrTestUtils.java b/spring-batch-test/src/main/java/org/springframework/batch/test/JsrTestUtils.java
index 12e203338..1f397c490 100644
--- a/spring-batch-test/src/main/java/org/springframework/batch/test/JsrTestUtils.java
+++ b/spring-batch-test/src/main/java/org/springframework/batch/test/JsrTestUtils.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013-2018 the original author or authors.
+ * Copyright 2013-2021 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.
@@ -15,12 +15,12 @@
*/
package org.springframework.batch.test;
-import javax.batch.operations.JobOperator;
-import javax.batch.runtime.BatchRuntime;
-import javax.batch.runtime.BatchStatus;
-import javax.batch.runtime.JobExecution;
-import javax.batch.runtime.Metric;
-import javax.batch.runtime.StepExecution;
+import jakarta.batch.operations.JobOperator;
+import jakarta.batch.runtime.BatchRuntime;
+import jakarta.batch.runtime.BatchStatus;
+import jakarta.batch.runtime.JobExecution;
+import jakarta.batch.runtime.Metric;
+import jakarta.batch.runtime.StepExecution;
import java.util.Date;
import java.util.Properties;
import java.util.concurrent.TimeoutException;