Polish templates code
This commit is contained in:
@@ -20,17 +20,20 @@ import org.springframework.core.env.Environment;
|
||||
import org.springframework.core.io.ResourceLoader;
|
||||
|
||||
/**
|
||||
* A {@code TemplateAvailabilityProvider} indicates the availability of view templates for
|
||||
* a particular templating engine such as FreeMarker or Thymeleaf
|
||||
*
|
||||
* Indicates the availability of view templates for a particular templating engine such as
|
||||
* FreeMarker or Thymeleaf
|
||||
*
|
||||
* @author Andy Wilkinson
|
||||
*
|
||||
* @since 1.1.0
|
||||
*/
|
||||
public interface TemplateAvailabilityProvider {
|
||||
|
||||
/**
|
||||
* Returns {@code true} if a template is available for the given {@code view},
|
||||
* otherwise {@code false} is returned.
|
||||
* Returns {@code true} if a template is available for the given {@code view}.
|
||||
* @param view the view name
|
||||
* @param environment the environment
|
||||
* @param classLoader the class loader
|
||||
* @param resourceLoader the resource loader
|
||||
*/
|
||||
boolean isTemplateAvailable(String view, Environment environment,
|
||||
ClassLoader classLoader, ResourceLoader resourceLoader);
|
||||
|
||||
Reference in New Issue
Block a user