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

    Modifier and Type
    Method
    Description
    boolean
    isTemplateAvailable(String view, org.springframework.core.env.Environment environment, ClassLoader classLoader, org.springframework.core.io.ResourceLoader resourceLoader)
    Returns true if a template is available for the given view.
  • Method Details

    • isTemplateAvailable

      boolean isTemplateAvailable(String view, org.springframework.core.env.Environment environment, ClassLoader classLoader, org.springframework.core.io.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