Package io.jstach.opt.spring.boot.webmvc
Class JStachioWebMvcAutoConfiguration
java.lang.Object
io.jstach.opt.spring.boot.webmvc.JStachioWebMvcAutoConfiguration
- All Implemented Interfaces:
WebMvcConfigurer
@AutoConfiguration
@AutoConfigureAfter(JStachioAutoConfiguration.class)
public class JStachioWebMvcAutoConfiguration
extends Object
implements WebMvcConfigurer
MVC AutoConfiguration for JStachio runtime.
- Author:
- agentgt, dsyer
- See Also:
-
Constructor Summary
ConstructorDescriptionJStachioWebMvcAutoConfiguration
(JStachioHttpMessageConverter messageConverter) Configures based on the jstachio found by spring -
Method Summary
Modifier and TypeMethodDescriptionvoid
configureMessageConverters
(List<HttpMessageConverter<?>> converters) Configures an interceptor for before rendering logic useful for adding additional data to JStache models.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
addArgumentResolvers, addCorsMappings, addFormatters, addInterceptors, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
-
Constructor Details
-
JStachioWebMvcAutoConfiguration
Configures based on the jstachio found by spring- Parameters:
messageConverter
- jstachio powered message converter
-
-
Method Details
-
configureMessageConverters
- Specified by:
configureMessageConverters
in interfaceWebMvcConfigurer
-
viewSetupHandlerInterceptor
Configures an interceptor for before rendering logic useful for adding additional data to JStache models.- Parameters:
context
- searched forJStachioModelViewConfigurer
s.- Returns:
- interceptor that will automatically be added to the web context.
-