Package io.micronaut.views
Interface ViewsRendererLocator
- All Known Implementing Classes:
 DefaultViewsRendererLocator
- Functional Interface:
 - This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
 
@FunctionalInterface
@DefaultImplementation(DefaultViewsRendererLocator.class)
public interface ViewsRendererLocator
Helps resolve a 
ViewsRenderer for a particular view, media type and response class.- Since:
 - 3.0.0
 - Author:
 - Sergio del Amo
 
- 
Method Summary
Modifier and TypeMethodDescription@NonNull Optional<ViewsRenderer>resolveViewsRenderer(@NonNull String view, @NonNull String mediaType, @Nullable Object body)  
- 
Method Details
- 
resolveViewsRenderer
@NonNull @NonNull Optional<ViewsRenderer> resolveViewsRenderer(@NonNull @NonNull String view, @NonNull @NonNull String mediaType, @Nullable @Nullable Object body) throws ViewNotFoundException - Parameters:
 view- view NamemediaType- Response Content Typebody- Response Body- Returns:
 - The 
ViewsRendererable to resolve the view with the response body and media type - Throws:
 ViewNotFoundException- if the view is not found for the resolvedViewsRenderers.
 
 -