Interface SimpleRepositoryEntityLoader<I,T>
- Type Parameters:
I- The type of the identifier of the entity.T- The type of the entity.
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Functional interface describing a component capable of loading an entity with the given identifier for the
SimpleRepository. The entity is loaded within the given ProcessingContext.- Since:
- 5.0.0
- Author:
- Mitchell Herrijgers
-
Method Summary
Modifier and TypeMethodDescriptionCompletableFuture<? extends T> load(I id, ProcessingContext context) Load an entity with givenidwithin the givencontext.
-
Method Details
-
load
Load an entity with givenidwithin the givencontext.- Parameters:
id- The identifier of the entity to load.context- The context in which the entity should be loaded.- Returns:
- a CompletableFuture that resolves to the loaded entity.
-