Uses of Record Class
io.jstach.opt.spring.example.hello.HelloModel
Packages that use HelloModel
-
Uses of HelloModel in io.jstach.opt.spring.example.hello
Fields in io.jstach.opt.spring.example.hello with type parameters of type HelloModelModifier and TypeFieldDescriptionHelloController.view
Spring will inject this as the templates are component scanned as this projects moduleio.jstach.opt.spring.example
has a config that will add @Component
to all generated code.Methods in io.jstach.opt.spring.example.hello that return HelloModelModifier and TypeMethodDescriptionHelloController.hello()
Here we use JStachio runtime to resolve the renderer (in this case we are calling them Views) via Springs Http Message Converter.Methods in io.jstach.opt.spring.example.hello that return types with arguments of type HelloModelModifier and TypeMethodDescriptionHelloController.entity()
Here we use aResponseEntity
which allows use to set status codes with our model to be rendered.Methods in io.jstach.opt.spring.example.hello with parameters of type HelloModelModifier and TypeMethodDescriptionHelloModelView.execute
(HelloModel model, A a) HelloModelView.execute
(HelloModel model, StringBuilder sb) HelloModelView.render
(HelloModel data, A unescapedWriter, Formatter formatter, Appender escaper, Appender appender) Renders the passed in model.<A extends Output.EncodedOutput<E>,
E extends Exception>
AHelloModelView.write
(HelloModel model, A outputStream)