Package | Description |
---|---|
org.apache.velocity.runtime.resource | |
org.apache.velocity.runtime.resource.loader | |
org.apache.velocity.script |
Modifier and Type | Field and Description |
---|---|
protected ResourceLoader |
Resource.resourceLoader
The template loader that initially loaded the input
stream for this template, and knows how to check the
source of the input stream for modification.
|
Modifier and Type | Field and Description |
---|---|
protected List<ResourceLoader> |
ResourceManagerImpl.resourceLoaders
The List of templateLoaders that the Runtime will use to locate the InputStream source of a template.
|
Modifier and Type | Method and Description |
---|---|
ResourceLoader |
Resource.getResourceLoader()
Return the template loader that pulled
in the template stream
|
Modifier and Type | Method and Description |
---|---|
void |
Resource.setResourceLoader(ResourceLoader resourceLoader)
Set the template loader for this template.
|
Modifier and Type | Class and Description |
---|---|
class |
ClasspathResourceLoader
ClasspathResourceLoader is a simple loader that will load
templates from the classpath.
|
class |
DataSourceResourceLoader
This is a simple template file loader that loads templates
from a DataSource instead of plain files.
|
class |
FileResourceLoader
A loader for templates stored on the file system.
|
class |
JarResourceLoader
ResourceLoader to load templates from multiple Jar files.
|
class |
StringResourceLoader
Resource loader that works with Strings.
|
class |
URLResourceLoader
This is a simple URL-based loader.
|
Modifier and Type | Method and Description |
---|---|
static ResourceLoader |
ResourceLoaderFactory.getLoader(RuntimeServices rs,
String loaderClassName)
Gets the loader specified in the configuration file.
|
Modifier and Type | Class and Description |
---|---|
protected static class |
VelocityScriptEngine.SingleResourceReader |
Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.