Interface ViewsModelDecorator<T,R>

Type Parameters:
T - The model type
R - The request type
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@DefaultImplementation(io.micronaut.views.DefaultViewsModelDecorator.class) @FunctionalInterface public interface ViewsModelDecorator<T,R>
Decorates a Views Model.
Since:
3.0.0
Author:
Sergio del Amo
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    decorate(R request, @NonNull ModelAndView<T> modelAndView)
    decorates a model.
  • Method Details

    • decorate

      void decorate(R request, @NonNull ModelAndView<T> modelAndView)
      decorates a model.
      Parameters:
      request - The request this model relates to.
      modelAndView - The ModelAndView to be enhanced.