Added a loadImpl function to allow delegate overriding better by bbakerman · Pull Request #240 · graphql-java/java-dataloader

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@bbakerman

Copy link

Member

Allows delegates to have side effects in their load and loadMany methods more easily without having to copy code

}


private CompletableFuture<V> loadImpl(@NonNull K key, @Nullable Object keyContext) {
Copy link

Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should that be protected?

Copy link

Member

@andimarek andimarek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The one method maybe protected, but otherwise 👍

…-handling

# Conflicts:
#	src/main/java/org/dataloader/DataLoader.java

@bbakerman bbakerman added this to the 6.0.0 milestone

Oct 26, 2025
…-handling

# Conflicts:
#	src/main/java/org/dataloader/DataLoader.java

@dondonz dondonz merged commit 9812f98 into master

Oct 29, 2025

1 check passed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@andimarek andimarek andimarek approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

6.0.0

Development

Successfully merging this pull request may close these issues.

3 participants

@bbakerman @andimarek @dondonz