Skip to content

Segregate StepLocator methods in a sub interface #5015

@fmbenhassine

Description

@fmbenhassine

Currently, StepLocator is defined as follows:

public interface StepLocator {

	Collection<String> getStepNames();

	@Nullable Step getStep(String stepName);

}

When used in a remote partitioning setup, only the getStep(String) is used to locate the step to execute, but clients that implement this interface are forced to implement getStepNames() even if it is not used.

Following the ISP, getStepNames() should be defined in a sub-interface, ListableStepLocator, similar to ListableJobLocator.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions