Skip to content

Make JobRepository extend JobExplorer #4824

Closed
@fmbenhassine

Description

@fmbenhassine

As of v5.2, JobRepository and JobExplorer have similar/same methods with different signatures/names doing the same thing (ie duplicate implementations). Here are some examples:

JobRepository JobExplorer
findJobExecutions getJobExecutions
getLastJobExecution getLastJobExecution
getJobNames getJobNames
getJobInstance getJobInstance
findJobInstancesByName findJobInstancesByJobName

Maintaining duplicate implementations is obviously not ideal. Moreover, JobExplorer is designed to be a read-only version of JobRepository, therefore JobRepository can technically be an extension of JobExplorer.

Finally, this would also make the batch configuration easier for users as they would not need to configure an additional bean (the JobExplorer) once they configured a JobRepository, which is almost always needed anyway.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions