Class MustacheTemplateAvailabilityProvider
java.lang.Object
org.springframework.boot.autoconfigure.mustache.MustacheTemplateAvailabilityProvider
- All Implemented Interfaces:
TemplateAvailabilityProvider
public class MustacheTemplateAvailabilityProvider
extends Object
implements TemplateAvailabilityProvider
TemplateAvailabilityProvider
that provides availability information for
Mustache view templates.- Since:
- 1.2.2
- Author:
- Dave Syer, Madhura Bhave
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isTemplateAvailable
(String view, Environment environment, ClassLoader classLoader, ResourceLoader resourceLoader) Returnstrue
if a template is available for the givenview
.
-
Constructor Details
-
MustacheTemplateAvailabilityProvider
public MustacheTemplateAvailabilityProvider()
-
-
Method Details
-
isTemplateAvailable
public boolean isTemplateAvailable(String view, Environment environment, ClassLoader classLoader, ResourceLoader resourceLoader) Description copied from interface:TemplateAvailabilityProvider
Returnstrue
if a template is available for the givenview
.- Specified by:
isTemplateAvailable
in interfaceTemplateAvailabilityProvider
- Parameters:
view
- the view nameenvironment
- the environmentclassLoader
- the class loaderresourceLoader
- the resource loader- Returns:
- if the template is available
-