-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Documentation references a class that's deprecated in v4 and removed in v5: MapJobRepositoryFactoryBean #3834
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
We did not start working on v5 yet. We have indeed deprecated the |
But the documentation for version 4 also references the already deprecated class: https://docs.spring.io/spring-batch/docs/4.3.x/reference/html/job.html#inMemoryRepository If that class is deprecated in v4, it means there's another way to achieve the same thing, and that proper/better way is what should be shown in the documentation. |
All deprecations have been documented in the What's new section. However, the replacement of each deprecated API can be found in its Javadoc, like the one of MapJobRepositoryFactoryBean for example:
We will provide a complete migration guide in v5 with how to replace each deprecated API. That said, I understand what you are looking for, which I guess some "warning" or "heads-up" note about the deprecated API in its section itself in the reference documentation (in addition to its javadoc). I don't think we should now update the reference docs for all the 30+ deprecated APIs (listed in #3836), but this is something we will certainly consider in future releases. |
Hi Mahmoud,
Thanks for your answers.
It's the migration guide that I was looking for.
I understand the lack of time to do this, but I think it would be great
(when possible) to provide the migration guide and/or give examples for the
new way of doing things, as soon as something is deprecated. Otherwise, for
lack of documentation/examples on how to use the new APIs, people might
still use the old/deprecated APIs.
Best regards,
Calin Cosma
…On Mon, Jan 25, 2021 at 11:27 AM Mahmoud Ben Hassine < ***@***.***> wrote:
All deprecations have been documented in the What's new
<https://docs.spring.io/spring-batch/docs/4.3.x/reference/html/whatsnew.html#apiDeprecation>
section. However, the replacement of each deprecated API can be found in
its Javadoc, like the one of MapJobRepositoryFactoryBean
<https://docs.spring.io/spring-batch/docs/4.3.x/api/org/springframework/batch/core/repository/support/MapJobRepositoryFactoryBean.html>
for example:
Deprecated as of v4.3 in favor or using the JobRepositoryFactoryBean with an in-memory database.
We will provide a complete migration guide in v5 with how to replace each
deprecated API. That said, I understand what you are looking for, which I
guess some "warning" or "heads-up" note about the deprecated API in its
section itself in the reference documentation (in addition to its javadoc).
I don't think we should now update the reference docs for all the 30+
deprecated APIs (listed in #3836
<#3836>), but this
is something we will certainly consider in future releases.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#3834 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AD23TP2LS24BAFCFZSUK5JDS3VBPPANCNFSM4WMQWH3Q>
.
|
Our project should be executed from command line. I rewrote in such way, see code below:
|
https://docs.spring.io/spring-batch/docs/5.0.0-SNAPSHOT/reference/html/job.html#inMemoryRepository
references MapJobRepositoryFactoryBean which is deprecated in v4 and it's supposed to have been removed in v5.
Same documentation for v4 and current.
The text was updated successfully, but these errors were encountered: