vertx/src/main/java/eu/internetofus/common/vertx/ModelResources.java
/**
   * The method to call when is retrieving a model.
   *
   * @param model    context of the model to retrieve.
   * @param searcher the function used to obtain the model.
   * @param context  of the request.
   *
   * @param <T>      type of model to retrieve.
   * @param <I>      type for the model identifier.
   * @param <C>      type of validation context to use.
   */
The method to call when is retrieving a model.
@param model    context of the model to retrieve.
@param searcher the function used to obtain the model.
@param context  of the request.

@param       type of model to retrieve.
@param       type for the model identifier.
@param       type of validation context to use.
The method to call when is retrieving a model . @param model context of the model to retrieve . @param searcher the function used to obtain the model . @param context of the request . @param type of model to retrieve . @param type for the model identifier . @param type of validation context to use .
static public <T extends Model, I, C extends ValidateContext<C>> void retrieveModel(
      @NotNull final ModelContext<T, I, C> model, @NotNull final BiConsumer<I, Handler<AsyncResult<T>>> searcher,
      @NotNull final ServiceContext context) {
    retrieveModelChain(model, searcher, context,
        () -> ServiceResponseHandlers.responseOk(context.resultHandler, model.target));
  }
static public < T extends Model , I , C extends ValidateContext < C > > void retrieveModel ( @ NotNull final ModelContext < T , I , C > model , @ NotNull final BiConsumer < I , Handler < AsyncResult < T > > > searcher , @ NotNull final ServiceContext context ) { retrieveModelChain ( model , searcher , context , ( ) -> ServiceResponseHandlers . responseOk ( context . resultHandler , model . target ) ) ; }
The method to call when is retrieving a model.
The method to call when is retrieving a model .