Class ToolboxConfiguration
java.lang.Object
org.apache.velocity.tools.config.Configuration
org.apache.velocity.tools.config.CompoundConfiguration<ToolConfiguration>
org.apache.velocity.tools.config.ToolboxConfiguration
- All Implemented Interfaces:
Comparable<Configuration>
This class handles configuration info for the Toolbox instances
that will eventually be produced by ToolboxFactory.
It contains ToolConfigurations for tools which will be managed
by those toolboxes, as well the toolboxes' scope and
any other Propertys which you intend to be available
to all the tools in the toolbox.
Most users will not find themselves directly using the API of this class.
NOTE: Two instances of this class are considered equal() if their scopes are equal. This is not the intuitive behavior at this level but is done to facilitate intuitive behavior in the higher APIs, which are much more likely to be used directly.
- Version:
- $Id: ToolboxConfiguration.java 511959 2007-02-26 19:24:39Z nbubna $
- Author:
- Nathan Bubna
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTool(ToolConfiguration tool) intcompareTo(Configuration conf) booleangetScope()getTools()inthashCode()voidremoveTool(ToolConfiguration tool) voidvoidsetTools(Collection<ToolConfiguration> tools) toString()voidvalidate()Methods inherited from class CompoundConfiguration
addChild, addChildren, addConfiguration, appendChildren, getChild, getChildren, hasChildren, removeChild, setChildrenMethods inherited from class Configuration
addConfiguration, addProperty, appendProperties, getProperties, getProperty, getPropertyMap, hasProperties, removeProperty, removeProperty, setProperties, setProperty, setPropertyMap
-
Constructor Details
-
ToolboxConfiguration
public ToolboxConfiguration()
-
-
Method Details
-
setScope
-
getScope
-
addTool
-
removeTool
-
getTool
-
getTools
-
setTools
-
validate
public void validate()- Overrides:
validatein classCompoundConfiguration<ToolConfiguration>
-
compareTo
- Specified by:
compareToin interfaceComparable<Configuration>- Overrides:
compareToin classConfiguration
-
hashCode
public int hashCode()- Overrides:
hashCodein classCompoundConfiguration<ToolConfiguration>
-
equals
- Overrides:
equalsin classCompoundConfiguration<ToolConfiguration>
-
toString
-