Skip to content

Add default methods in interfaces #3924

Closed
@fmbenhassine

Description

@fmbenhassine

Several core interfaces could benefit from using Java 8's default methods in interfaces feature. This has a couple of advantages:

  • It makes client code more readable as it does not require it to implement all methods of a given interface.
  • It reduces the code on the framework side since support classes (like JobExecutionListenerSupport, StepExecutionListenerSupport, ChunkListenerSupport, etc) become obsolete in favour of default methods.

This feature is similar to what has been done in other projects (Here is an example from Spring Framework) and the goal is to make sure the Spring (Batch) developer has a consistent experience across the portfolio.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions