public abstract class PathBasedTemplateAvailabilityProvider extends Object implements TemplateAvailabilityProvider
TemplateAvailabilityProvider
implementations that find
templates from paths.Modifier and Type | Class and Description |
---|---|
protected static class |
PathBasedTemplateAvailabilityProvider.TemplateAvailabilityProperties |
Constructor and Description |
---|
PathBasedTemplateAvailabilityProvider(String className,
Class<? extends PathBasedTemplateAvailabilityProvider.TemplateAvailabilityProperties> propertiesClass,
String propertyPrefix) |
Modifier and Type | Method and Description |
---|---|
boolean |
isTemplateAvailable(String view,
Environment environment,
ClassLoader classLoader,
ResourceLoader resourceLoader)
Returns
true if a template is available for the given view . |
public PathBasedTemplateAvailabilityProvider(String className, Class<? extends PathBasedTemplateAvailabilityProvider.TemplateAvailabilityProperties> propertiesClass, String propertyPrefix)
public boolean isTemplateAvailable(String view, Environment environment, ClassLoader classLoader, ResourceLoader resourceLoader)
TemplateAvailabilityProvider
true
if a template is available for the given view
.isTemplateAvailable
in interface TemplateAvailabilityProvider
view
- the view nameenvironment
- the environmentclassLoader
- the class loaderresourceLoader
- the resource loaderCopyright © 2018 Pivotal Software, Inc.. All rights reserved.