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.
@FunctionalInterface public interface TemplateAvailabilityProvider
Indicates the availability of view templates for a particular templating engine such as FreeMarker or Thymeleaf.- Since:
- 1.1.0
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isTemplateAvailable(String view, org.springframework.core.env.Environment environment, ClassLoader classLoader, org.springframework.core.io.ResourceLoader resourceLoader)
Returnstrue
if a template is available for the givenview
.
Method Detail
isTemplateAvailable
boolean isTemplateAvailable(String view, org.springframework.core.env.Environment environment, ClassLoader classLoader, org.springframework.core.io.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