Class JspTemplateAvailabilityProvider
java.lang.Object
org.springframework.boot.autoconfigure.web.servlet.JspTemplateAvailabilityProvider
- All Implemented Interfaces:
TemplateAvailabilityProvider
TemplateAvailabilityProvider that provides availability information for JSP
view templates.- Since:
- 2.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisTemplateAvailable(String view, org.springframework.core.env.Environment environment, ClassLoader classLoader, org.springframework.core.io.ResourceLoader resourceLoader) Returnstrueif a template is available for the givenview.
-
Constructor Details
-
JspTemplateAvailabilityProvider
public JspTemplateAvailabilityProvider()
-
-
Method Details
-
isTemplateAvailable
public boolean isTemplateAvailable(String view, org.springframework.core.env.Environment environment, ClassLoader classLoader, org.springframework.core.io.ResourceLoader resourceLoader) Description copied from interface:TemplateAvailabilityProviderReturnstrueif a template is available for the givenview.- Specified by:
isTemplateAvailablein interfaceTemplateAvailabilityProvider- Parameters:
view- the view nameenvironment- the environmentclassLoader- the class loaderresourceLoader- the resource loader- Returns:
- if the template is available
-