Commit Graph

1629 Commits

Author SHA1 Message Date
Henning Poettker
4faa842bb1 Upgrade to Mockito 5
Issue #4366
2023-05-04 00:09:11 +02:00
Minsoo Kim
4a971a0764 Enhance switch statements
Issue #4365
2023-05-03 23:59:16 +02:00
Mahmoud Ben Hassine
7460c5f9a1 Update Javadoc of JdbcPagingItemReaderBuilder 2023-05-03 23:46:29 +02:00
Jonas
bb337c6b2f Change visibility of properties to protected in JdbcPagingItemReaderBuilder
There are cases, when you want to extend the JdbcPagingItemReader
by adding some custom fields and behaviours, but want to stay in
the normal way of creating this class via a Builder class.

If you want to do it, you currently have to reimplement the whole
class just for adding some fields because there is no non-ugly way
to access the fields. This commit makes those properties protected,
so one can override the default build() method behaviour in the
derived class and still have access to the properties.

Issue #4331
2023-05-03 23:28:57 +02:00
Mahmoud Ben Hassine
21bc4d582b Allow StaxEventItemReader to auto-detect the input file encoding
Before this commit, it was not possible to pass a null encoding
to the StaxEventItemReader, which prevents the XML event reader
to auto-detect the file encoding.

This commits makes the encoding setter more lenient by accepting
a null value.

Resolves #4101
2023-04-27 20:52:37 +02:00
Mahmoud Ben Hassine
ec161f8429 Reload test context before each method in AsynchronousTests
Resolves #4095
2023-04-25 23:30:26 +02:00
Mahmoud Ben Hassine
972951a40a Remove unused imports and apply imports code style 2023-04-11 16:28:36 +02:00
Henning Poettker
e61065ab00 Reduce use of deprecated APIs 2023-03-29 15:34:48 +02:00
Henning Poettker
2b536578c9 Add SafeVarargs annotations 2023-03-29 15:23:51 +02:00
Mahmoud Ben Hassine
dbdbf787e6 Update Javadocs 2023-03-21 17:51:53 +01:00
Mahmoud Ben Hassine
37c26dd005 Next development version 2023-02-23 00:27:23 +01:00
Mahmoud Ben Hassine
3aa503d6ca Release version 5.0.1 2023-02-23 00:20:40 +01:00
drow724
89e76164af Add default component name in constructor of AvroItemReader
Issue #4285
2023-02-21 18:08:46 +01:00
Mahmoud Ben Hassine
4ea54388e7 Fix inconsistent state validation rules in RepositoryItemReader
Before this commit, state validation rules in RepositoryItemReader
were not consistent with those applied in its builder.

This commit makes validation rules consistent between the two ways
of creating a RepositoryItemReader. This commit also adds a getter
for the component name in ExecutionContextUserSupport to be able to
assert on it where appropriate down the hierarchy.

Resolves #4276
2023-02-18 04:46:47 +01:00
Henning Poettker
523386e674 Prefer Slice over Page in RepositoryItemReader
Resolves #4115
2023-02-17 17:13:36 +01:00
jinwoo-Bae
4f1dc94b07 Implement equals() and hashcode() in Chunk class
Resolves #4296
2023-02-17 06:18:25 +01:00
Mahmoud Ben Hassine
46c8ebbe7e Fix parameters parsing in JobOperator and MetaDataInstanceFactory
Before this commit, the parsing of job parameters in
JobOperator#start and MetaDataInstanceFactory#createJobExecution
was accepting the comma separated key=value pairs format,
which is incompatible with the new job parameters format
introduced in v5.

This commit updates the contract as well as the implementation
of those APIs to be compatible with v5.

Resolves #4253
Resolves #4301
2023-02-16 16:19:04 +01:00
Philippe Marschall
8c7fb5ca02 Check the return value of File.delete()
Check the return value of File.delete() and
throw an exception if deleting a file fails.

Issue #4203
2023-02-13 14:12:56 +01:00
Henning Poettker
43fa18fa13 Use thread-safe collections in multithreaded test 2023-02-13 13:27:17 +01:00
juhyun
e79b366957 Fix double "before" typo 2023-02-08 00:02:38 +01:00
Mahmoud Ben Hassine
debdd9f49c Revert "Update next development version to 5.1.0-SNAPSHOT"
This reverts commit 7a34a1520f.
2022-12-09 01:30:34 +01:00
Mahmoud Ben Hassine
7a34a1520f Update next development version to 5.1.0-SNAPSHOT 2022-12-08 17:26:37 +01:00
Spring Builds
656e3f8895 [artifactory-release] Next development version 2022-11-24 03:30:11 +00:00
Spring Builds
3bef84da7c [artifactory-release] Release version 5.0.0 2022-11-24 03:30:08 +00:00
Mahmoud Ben Hassine
15069aa1dc Fix typos 2022-11-23 15:52:10 +01:00
Danilo Piazzalunga
fc0ec01ff8 Throw IllegalStateException from afterPropertiesSet
Consistently use Assert.state in the afterPropertiesSet()
methods to throw IllegalStateException instead of
IllegalArgumentException when some properties are missing
and/or invalid.

Resolves #2244
2022-11-23 12:22:26 +01:00
Mahmoud Ben Hassine
f72e0f4d16 Fix deprecation notes in ItemStreamSupport
Resolves #4238
2022-11-22 16:54:01 +01:00
Spring Builds
e273ec151e [artifactory-release] Next development version 2022-11-09 14:34:37 +00:00
Spring Builds
420a7baa75 [artifactory-release] Release version 5.0.0-RC2 2022-11-09 14:34:34 +00:00
Mahmoud Ben Hassine
919f73e78c Remove the SQL Server sequence incrementer in favor of the one provided by Spring Framework 2022-11-08 21:15:49 +01:00
Mahmoud Ben Hassine
1cb172b5e5 Remove the MariaDB sequence incrementer in favor of the one provided by Spring Framework 2022-11-08 21:15:40 +01:00
Mahmoud Ben Hassine
881c79c3e4 Align dependencies with JakartaEE 10 2022-11-08 20:40:43 +01:00
Mahmoud Ben Hassine
524e9564c0 Add full support for MariaDB
This commit adds full support for MariaDB as
a job repository and removes the code that
treats it as MySQL.

Resolves #3891
Resolves #4217
2022-10-25 11:11:57 +02:00
Spring Builds
24283a8a1f [artifactory-release] Next development version 2022-10-19 23:57:21 +00:00
Spring Builds
adde7d764e [artifactory-release] Release version 5.0.0-RC1 2022-10-19 23:57:18 +00:00
Mahmoud Ben Hassine
866fe37eb0 Exclude Jackson from transitive dependencies 2022-10-19 11:28:54 +02:00
Mahmoud Ben Hassine
d55a091654 Remove Gemfire support in Spring Batch
Based on the decision to discontinue the support
of Spring Data for Apache Geode [1], this commit
removes the support for Geode in Spring Batch.

The code will be moved to the spring-batch-extensions
repository as a community-driven effort.

[1]: https://github.com/spring-projects/spring-data-geode#notice

Resolves #4214
2022-10-18 12:31:09 +02:00
Spring Builds
58c760b3ef [artifactory-release] Next development version 2022-10-13 10:34:01 +00:00
Spring Builds
87f3644667 [artifactory-release] Release version 5.0.0-M8 2022-10-13 10:33:58 +00:00
Mahmoud Ben Hassine
bd9d0d90d6 Deprecate internal classes related to concurrency in TaskExecutorRepeatTemplate
Related to #3949
Related to #3950
Related to #3951
2022-10-12 19:00:40 +02:00
Mahmoud Ben Hassine
1ff04d532d Deprecate throttle limit in TaskExecutorRepeatTemplate
Resolves #2218
2022-10-12 18:57:18 +02:00
Mahmoud Ben Hassine
157d7a3a20 Deprecate ItemStreamSupport in favor of using default methods in the ItemStream interface 2022-10-12 18:55:46 +02:00
Mahmoud Ben Hassine
668c614ed9 Add default methods in ItemStream interface 2022-10-12 18:55:06 +02:00
Mahmoud Ben Hassine
30cee99578 Remove unused constructor in SkipWrapper
This constructor does not make sense as it
does not accept the skipped item.
2022-10-12 18:53:52 +02:00
Mahmoud Ben Hassine
87e69f3e87 Deprecate Classifier
This annotation is not used or introspected
by production code.
2022-10-12 18:51:08 +02:00
Henning Poettker
220de61f75 Remove un-used code for jump-to-item queries 2022-10-11 22:10:59 +02:00
Mahmoud Ben Hassine
4bcc6b147c Exclude jackson-core from avro dependency
This was bringing a version of Jackson that is
conflicting with the required version of Jackson.
2022-10-11 16:55:55 +02:00
Mahmoud Ben Hassine
2b258d1b88 Change the default execution context serializer to DefaultExecutionContextSerializer
This commit changes the default execution context serializer to
DefaultExecutionContextSerializer, which makes Jackson an optional
dependency.

Resolves #4140
2022-10-10 10:39:50 +02:00
Spring Builds
58ce4fecac [artifactory-release] Next development version 2022-10-05 04:16:28 +00:00
Spring Builds
771c14f00d [artifactory-release] Release version 5.0.0-M7 2022-10-05 04:16:25 +00:00