Package | Description |
---|---|
org.apache.velocity.tools | |
org.apache.velocity.tools.config | |
org.apache.velocity.tools.view |
Contains tools and supporting infrastructure for using
those tools in a servlet environment as well as general
use classes to support use of Velocity as (or in) the
view layer of web applications.
|
Modifier and Type | Field and Description |
---|---|
protected ToolboxFactory |
ToolManager.factory |
Modifier and Type | Method and Description |
---|---|
ToolboxFactory |
ToolManager.getToolboxFactory()
Returns the underlying
ToolboxFactory being used. |
Modifier and Type | Method and Description |
---|---|
void |
ToolManager.setToolboxFactory(ToolboxFactory factory)
Sets the underlying ToolboxFactory being used.
|
Modifier and Type | Method and Description |
---|---|
ToolboxFactory |
FactoryConfiguration.createFactory() |
static ToolboxFactory |
ConfigurationUtils.createFactory()
Returns a new, standard
ToolboxFactory configured
with the results of ConfigurationUtils.findFromSystemProperty() . |
Modifier and Type | Method and Description |
---|---|
protected void |
VelocityView.configure(JeeConfig config,
ToolboxFactory factory)
Here's the configuration lookup/loading order:
If loadDefaults is true,
ConfigurationUtils.getDefaultTools()
Config file optionally specified by servletContext org.apache.velocity.tools init-param
Config file optionally at /WEB-INF/tools.xml (conventional location)
Config file optionally specified by servlet org.apache.velocity.tools init-param
Remember that as these configurations are added on top of each other,
the newer values will always override the older ones. |
Copyright © 2002–2021 The Apache Software Foundation. All rights reserved.