Package io.micronaut.views.model
Interface ViewModelProcessor<T,R>
- Type Parameters:
T- the type this model processor should apply toR- The request type
- All Known Implementing Classes:
SecurityViewModelProcessor
public interface ViewModelProcessor<T,R>
Implementers of
ViewModelProcessor process the ModelAndView and modify it prior to rendering.- Since:
- 1.0
- Author:
- Sergio del Amo
-
Method Summary
Modifier and TypeMethodDescriptionvoidprocess(@NonNull R request, @NonNull ModelAndView<T> modelAndView) Invoked prior to the view rendering.
-
Method Details
-
process
Invoked prior to the view rendering.- Parameters:
request- The request being processedmodelAndView- The model and view
-