Interface TemplateAvailabilityProvider
- All Known Implementing Classes:
FreeMarkerTemplateAvailabilityProvider
,GroovyTemplateAvailabilityProvider
,JspTemplateAvailabilityProvider
,MustacheTemplateAvailabilityProvider
,PathBasedTemplateAvailabilityProvider
,ThymeleafTemplateAvailabilityProvider
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Indicates the availability of view templates for a particular templating engine such as
FreeMarker or Thymeleaf.
- Since:
- 1.1.0
- Author:
- Andy Wilkinson
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isTemplateAvailable
(String view, Environment environment, ClassLoader classLoader, ResourceLoader resourceLoader) Returnstrue
if a template is available for the givenview
.
-
Method Details
-
isTemplateAvailable
boolean isTemplateAvailable(String view, Environment environment, ClassLoader classLoader, ResourceLoader resourceLoader) Returnstrue
if a template is available for the givenview
.- Parameters:
view
- the view nameenvironment
- the environmentclassLoader
- the class loaderresourceLoader
- the resource loader- Returns:
- if the template is available
-