Skip to content

Added a loadImpl function to allow delegate overriding better#240

Merged
dondonz merged 5 commits intomasterfrom
fixed-delegate-load-handling
Oct 29, 2025
Merged

Added a loadImpl function to allow delegate overriding better#240
dondonz merged 5 commits intomasterfrom
fixed-delegate-load-handling

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants