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.

@FunctionalInterface public interface SimpleRepositoryEntityLoader<I,T>
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 Type
    Method
    Description
    CompletableFuture<? extends T>
    load(I id, ProcessingContext context)
    Load an entity with given id within the given context.
  • Method Details

    • load

      CompletableFuture<? extends T> load(@Nonnull I id, @Nonnull ProcessingContext context)
      Load an entity with given id within the given context.
      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.