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
- Author:
- Andy Wilkinson, Stephane Nicoll, 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
-
JspTemplateAvailabilityProvider
public JspTemplateAvailabilityProvider()
-
-
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
-