Interface JStacheViewSupport

All Known Implementing Classes:
ExampleModel

public interface JStacheViewSupport
Have JStache models implement this mixin interface for easier support to generate views from models.

To enforce all models implement this interface configurure JStachio like:


 @JStacheConfig(interfacing = @JStacheInterfaces(modelImplements = JStacheViewSupport.class))
 // some class, package-info, module-info
  

If using this mixin interface is not desirable one can create view manually from a model with JStachioView.of(Object).

Author:
agentgt
  • Method Summary

    Modifier and Type
    Method
    Description
    default io.dropwizard.views.common.View
    Creates Dropwizard view from this model
  • Method Details

    • toView

      default io.dropwizard.views.common.View toView()
      Creates Dropwizard view from this model
      Returns:
      dropwizard view