Class AbstractTurboRenderer<T extends TemplatedBuilder<?>>

java.lang.Object
io.micronaut.views.turbo.AbstractTurboRenderer<T>
Type Parameters:
T - The class to be built
Direct Known Subclasses:
DefaultTurboFrameRenderer

public abstract class AbstractTurboRenderer<T extends TemplatedBuilder<?>> extends Object
Since:
3.4.0
Author:
Sergio del Amo
  • Constructor Details

    • AbstractTurboRenderer

      @Inject protected AbstractTurboRenderer(ViewsRendererLocator viewsRendererLocator, ViewsModelDecorator viewsModelDecorator, String mediaType)
      Parameters:
      viewsRendererLocator - Views renderer Locator
      viewsModelDecorator - Views Model Decorator
      mediaType - Media Type
    • AbstractTurboRenderer

      @Deprecated(since="5.2.1", forRemoval=true) protected AbstractTurboRenderer(ViewsRendererLocator viewsRendererLocator, String mediaType)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Parameters:
      viewsRendererLocator - Views renderer Locator
      mediaType - Media Type
  • Method Details

    • render

      @NonNull public @NonNull Optional<io.micronaut.core.io.Writable> render(@NonNull T builder, @Nullable @Nullable io.micronaut.http.HttpRequest<?> request)
      Parameters:
      builder - Builder
      request - The Request
      Returns:
      An Optional Writable with the builder rendered