public interface WebCmsEndpointModelLoader
WebCmsEndpointControllerAdvice if the initial endpoint related
model should be loaded. The latter is determined by the WebCmsEndpointHandlerInterceptor.
All loader beans will be called in order until one of them returns false on the call
to loadModel(HttpServletRequest, WebCmsEndpointContext, Model).
Assigning a correct order to an implementation is crucial.WebCmsEndpointControllerAdvice,
WebCmsEndpointHandlerInterceptor| Modifier and Type | Method and Description |
|---|---|
boolean |
loadModel(javax.servlet.http.HttpServletRequest request,
WebCmsEndpointContext endpointContext,
org.springframework.ui.Model model)
The return value determines if the next loader in the chain should be called.
|
boolean loadModel(javax.servlet.http.HttpServletRequest request,
WebCmsEndpointContext endpointContext,
org.springframework.ui.Model model)
false,
no other loaders will be executed.request - responsible for loading the contextendpointContext - loaded - will always return true on WebCmsEndpointContext.isAvailable()model - that can be initializedtrue if the next loader should still be called, false if notCopyright © 2020. All rights reserved.