Class EntityConfigurationCustomizers
java.lang.Object
com.foreach.across.modules.entity.support.EntityConfigurationCustomizers
Contains consumers for
EntityConfigurationBuilder
.- Since:
- 3.3.0
- Author:
- Arne Vandamme
-
Method Summary
Modifier and TypeMethodDescriptionstatic <U> Consumer<EntityConfigurationBuilder<U>>
registerEntityQueryExecutor
(@NonNull EntityQueryExecutor<? extends U> entityQueryExecutor) Register a specificEntityQueryExecutor
instance.static <U> Consumer<EntityConfigurationBuilder<U>>
registerEntityQueryExecutor
(@NonNull Collection<? extends U> collection) Register aCollectionEntityQueryExecutor
with a fixed collection.static <U> Consumer<EntityConfigurationBuilder<U>>
registerEntityQueryExecutor
(@NonNull Function<EntityConfiguration<U>, EntityQueryExecutor<? extends U>> factoryFunction) static <U> Consumer<EntityConfigurationBuilder<U>>
registerEntityQueryExecutor
(@NonNull Supplier<Collection<? extends U>> supplier) Register aCollectionEntityQueryExecutor
with aSupplier
.
-
Method Details
-
registerEntityQueryExecutor
public static <U> Consumer<EntityConfigurationBuilder<U>> registerEntityQueryExecutor(@NonNull @NonNull Collection<? extends U> collection) Register aCollectionEntityQueryExecutor
with a fixed collection.- Parameters:
collection
- containing all entities- Returns:
- consumer
-
registerEntityQueryExecutor
public static <U> Consumer<EntityConfigurationBuilder<U>> registerEntityQueryExecutor(@NonNull @NonNull Supplier<Collection<? extends U>> supplier) Register aCollectionEntityQueryExecutor
with aSupplier
.- Parameters:
supplier
- returning the collection of all entities- Returns:
- consumer
-
registerEntityQueryExecutor
public static <U> Consumer<EntityConfigurationBuilder<U>> registerEntityQueryExecutor(@NonNull @NonNull EntityQueryExecutor<? extends U> entityQueryExecutor) Register a specificEntityQueryExecutor
instance.- Parameters:
entityQueryExecutor
- containing all entities- Returns:
- consumer
-
registerEntityQueryExecutor
public static <U> Consumer<EntityConfigurationBuilder<U>> registerEntityQueryExecutor(@NonNull @NonNull Function<EntityConfiguration<U>, EntityQueryExecutor<? extends U>> factoryFunction) - Parameters:
factoryFunction
- that returns the executor- Returns:
- consumer
-