@Singleton public class DefaultViewsRendererLocator extends java.lang.Object implements ViewsRendererLocator
ViewsRendererLocator.| Constructor and Description |
|---|
DefaultViewsRendererLocator(io.micronaut.context.ApplicationContext applicationContext) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<ViewsRenderer> |
resolveViewsRenderer(java.lang.String view,
io.micronaut.http.MediaType mediaType,
java.lang.Object body) |
public DefaultViewsRendererLocator(io.micronaut.context.ApplicationContext applicationContext)
@NonNull public java.util.Optional<ViewsRenderer> resolveViewsRenderer(@NonNull java.lang.String view, @NonNull io.micronaut.http.MediaType mediaType, @Nullable java.lang.Object body) throws ViewNotFoundException
resolveViewsRenderer in interface ViewsRendererLocatorview - view NamemediaType - Response Content Typebody - Response BodyViewsRenderer able to resolve the view with the response body and media typeViewNotFoundException - if the view is not found for the resolved ViewsRenderers.