Rename methods to prevent duplicate bean names (#6098)

This commit is contained in:
Renaud Subiger 2024-07-12 03:05:38 +02:00 committed by GitHub
parent bd31bcb290
commit 40d42f3ba5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 9 additions and 6 deletions

View File

@ -65,7 +65,7 @@ public class DeleteExpungeAppCtx {
"load-ids",
"Load IDs of resources to expunge",
ResourceIdListWorkChunkJson.class,
loadIdsStep(theBatch2DaoSvc))
expungeLoadIdsStep(theBatch2DaoSvc))
.addLastStep(
"expunge",
"Perform the resource expunge",
@ -85,7 +85,7 @@ public class DeleteExpungeAppCtx {
}
@Bean
public LoadIdsStep<DeleteExpungeJobParameters> loadIdsStep(IBatch2DaoSvc theBatch2DaoSvc) {
public LoadIdsStep<DeleteExpungeJobParameters> expungeLoadIdsStep(IBatch2DaoSvc theBatch2DaoSvc) {
return new LoadIdsStep<>(theBatch2DaoSvc);
}

View File

@ -59,7 +59,7 @@ public class ReindexAppCtx {
"load-ids",
"Load IDs of resources to reindex",
ResourceIdListWorkChunkJson.class,
loadIdsStep(theBatch2DaoSvc))
reindexLoadIdsStep(theBatch2DaoSvc))
.addLastStep("reindex", "Perform the resource reindex", reindexStep())
.build();
}
@ -70,7 +70,7 @@ public class ReindexAppCtx {
}
@Bean
public IJobStepWorker<ReindexJobParameters, ChunkRangeJson, ResourceIdListWorkChunkJson> loadIdsStep(
public IJobStepWorker<ReindexJobParameters, ChunkRangeJson, ResourceIdListWorkChunkJson> reindexLoadIdsStep(
IBatch2DaoSvc theBatch2DaoSvc) {
return new LoadIdsStep<>(theBatch2DaoSvc);
}

View File

@ -58,7 +58,10 @@ public class MdmSubmitAppCtx {
ChunkRangeJson.class,
submitGenerateRangeChunksStep())
.addIntermediateStep(
"load-ids", "Load the IDs", ResourceIdListWorkChunkJson.class, loadIdsStep(theBatch2DaoSvc))
"load-ids",
"Load the IDs",
ResourceIdListWorkChunkJson.class,
mdmSubmitLoadIdsStep(theBatch2DaoSvc))
.addLastStep(
"inflate-and-submit-resources",
"Inflate and Submit resources",
@ -78,7 +81,7 @@ public class MdmSubmitAppCtx {
}
@Bean
public LoadIdsStep<MdmSubmitJobParameters> loadIdsStep(IBatch2DaoSvc theBatch2DaoSvc) {
public LoadIdsStep<MdmSubmitJobParameters> mdmSubmitLoadIdsStep(IBatch2DaoSvc theBatch2DaoSvc) {
return new LoadIdsStep<>(theBatch2DaoSvc);
}