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
Author:
Andy Wilkinson
  • Method Details

    • isTemplateAvailable

      boolean isTemplateAvailable(String view, Environment environment, ClassLoader classLoader, ResourceLoader resourceLoader)
      Returns true if a template is available for the given view.
      Parameters:
      view - the view name
      environment - the environment
      classLoader - the class loader
      resourceLoader - the resource loader
      Returns:
      if the template is available