Package io.micronaut.views
Interface ViewsModelDecorator<T,R>
- Type Parameters:
T- The model typeR- 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 TypeMethodDescriptionvoiddecorate(R request, @NonNull ModelAndView<T> modelAndView) decorates a model.
-
Method Details
-
decorate
decorates a model.- Parameters:
request- The request this model relates to.modelAndView- The ModelAndView to be enhanced.
-