Package org.apache.velocity.runtime
Interface RuntimeConstants
- All Superinterfaces:
DeprecatedRuntimeConstants
- All Known Implementing Classes:
RuntimeInstance
,RuntimeSingleton
,Velocity
,VelocityEngine
This class defines the keys that are used in the velocity.properties file so that they can be referenced as a constant within
Java code.
- Version:
- $Id$
- Author:
- Jon S. Stevens, Geir Magnusson Jr., Jason van Zyl
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum
Space gobbling modes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
An empty object (string, collection) or zero number is false.static final String
Key upon which a context should be accessible within itselfstatic final String
Used to enable or disable a scope control (false by default):context.scope_control.<scope_name> = true/false
where scope_name is one of:template, evaluate, foreach, macro, define
or the name of a body macro.static final String
key for Conversion Manager classstatic final String
key for Conversion Manager instancestatic final String
Vector of custom directivesstatic final String
Default parser classstatic final String
Default Runtime properties.static final String
externally provided logger name.static final String
Default Runtime properties.static final String
Maximum recursion depth allowed for the #define directive.static final String
Deprecated.static final String
Datasource loader datasource urlstatic final String
Datasource loader template key columnstatic final String
Datasource loader statements pool max sizestatic final String
Datasource loader templates tablestatic final String
Datasource loader template content columnstatic final String
Datasource loader template timestamp columnstatic final String
Default Encoding is UTF-8.static final String
Deprecated.if/how errors are displayed is not the concern of the engine, which should throw in all casesstatic final String
Deprecated.if/how errors are displayed is not the concern of the engine, which should throw in all casesstatic final String
Theevent_handler.include.class
property specifies a list of theIncludeEventHandler
implementations to use.static final String
Theevent_handler.invalid_references.class
property specifies a list of theInvalidReferenceEventHandler
implementations to use.static final String
Theevent_handler.invalid_references.null
property specifies if invalid null references (aka the value is present in the context or parent object but is null or a method returned null) trigger invalid reference events (defaults to false).static final String
Theevent_handler.invalid_references.quiet
property specifies if invalid quiet references (as in$!foo
) trigger events (defaults to false).static final String
Theevent_handler.invalid_references.tested
property specifies if invalid tested references (as in#if($foo)
) trigger invalid reference events (defaults to false).static final String
Theevent_handler.method_exception.class
property specifies a list of theMethodExceptionEventHandler
implementations to use.static final String
Theevent_handler.reference_insertion.class
property specifies a list of theReferenceInsertionEventHandler
implementations to use.static final String
The public handle for turning the caching on in the FileResourceLoader.static final String
The public handle for setting paths in the FileResourceLoader.static final String
Switch for the immutability of integer ranges.static final String
The default character encoding for the templates.static final String
Switch for the interpolation facility for string literals.static final String
A comma separated list of classes to restrict access to in the SecureIntrospector.static final String
A comma separated list of packages to restrict access to in the SecureIntrospector.static final String
Maximum allowed number of loops.static final int
The default number of parser instances to create.static final String
Maximum recursion depth allowed for the #parse directive.static final String
Property specifying the parser class to usestatic final String
Allow hyphen in identifiers (backward compatibility option)static final String
Theparser.pool.class
property specifies the name of theSimplePool
implementation to use.static final String
static final String
Deprecated.usecontext.scope_control.<scope_name> = true/false
static final String
Key prefix for a specific resource loader propertiesstatic final String
Resource loader cache property suffixstatic final String
Resource loader modification check interval property suffixstatic final String
Resource loader class property suffixstatic final String
token used to identify the loader internally.static final String
Resource loader instance property suffixstatic final String
File resource loader paths property suffixstatic final String
Key used to retrieve the names of the resource loaders to be used.static final String
Theresource.manager.cache.class
property specifies the name of theResourceCache
implementation to use.static final String
Theresource.manager.class
property specifies the name of theResourceManager
implementation to use.static final String
Theresource.manager.cache.size
property specifies the cache upper bound (if relevant).static final String
Theresource.manager.instance
property specifies an existing instance of aResourceManager
implementation to usestatic final String
controls if the finding of a resource is logged.static final String
externally provided logger.static final String
Logging of invalid method calls.static final String
externally provided logger name.static final String
Logging of invalid references.static final String
Whether to:static final String
Properties referenced in the template are required to exist the objectstatic final String
Indicates we are going to use modified escape behavior in strict modestatic final String
Whether to use string interning.static final String
Whether to throw an exception or just skip bad iterables.static final String
Space gobbling modestatic final String
Switch for ignoring nulls in math equations vs throwing exceptions.static final String
key name for uberspector.static final String
if true, throw an exception for wrong number of argumentsstatic final String
Defines name of the reference that can be used to get the AST block passed to block macro calls.static final String
This flag enable the 1.7 backward compatible mode for velocimacros (defaults to false): preserve argument literals: when displaying null or invalid non-quiet references, use the argument literal reference instead of the one in the macro block.static final String
Filename of local Velocimacro library template.static final String
switch for autoloading library-sourced VMs (for development).static final String
Default Velocimacro library template.static final String
Specify the maximum depth for macro callsstatic final String
Deprecated.since 2.1static final String
boolean (true/false) default true: allow inline (in-template) macro definitions.static final String
boolean (true/false) default false: allow inline (in-template) macro definitions to replace existing.static final String
Switch for forcing inline macros to be local: default false.Fields inherited from interface org.apache.velocity.runtime.DeprecatedRuntimeConstants
OLD_CHECK_EMPTY_OBJECTS, OLD_CONTEXT_AUTOREFERENCE_KEY, OLD_CONVERSION_HANDLER_CLASS, OLD_CUSTOM_DIRECTIVES, OLD_DEFINE_DIRECTIVE_MAXDEPTH, OLD_DS_RESOURCE_LOADER_DATASOURCE, OLD_DS_RESOURCE_LOADER_KEY_COLUMN, OLD_DS_RESOURCE_LOADER_TEMPLATE_COLUMN, OLD_DS_RESOURCE_LOADER_TIMESTAMP_COLUMN, OLD_ERRORMSG_END, OLD_ERRORMSG_START, OLD_EVENTHANDLER_INCLUDE, OLD_EVENTHANDLER_INVALIDREFERENCES, OLD_EVENTHANDLER_METHODEXCEPTION, OLD_EVENTHANDLER_REFERENCEINSERTION, OLD_FILE_RESOURCE_LOADER_CACHE, OLD_FILE_RESOURCE_LOADER_PATH, OLD_INPUT_ENCODING, OLD_INTERPOLATE_STRINGLITERALS, OLD_MAX_NUMBER_LOOPS, OLD_PARSE_DIRECTIVE_MAXDEPTH, OLD_RESOURCE_LOADER_CHECK_INTERVAL, OLD_RESOURCE_LOADERS, OLD_RESOURCE_MANAGER_DEFAULTCACHE_SIZE, OLD_RESOURCE_MANAGER_LOGWHENFOUND, OLD_RUNTIME_LOG_REFERENCE_LOG_INVALID, OLD_RUNTIME_REFERENCES_STRICT, OLD_RUNTIME_REFERENCES_STRICT_ESCAPE, OLD_SKIP_INVALID_ITERATOR, OLD_SPACE_GOBBLING, OLD_STRICT_MATH, OLD_UBERSPECT_CLASSNAME, OLD_VM_BODY_REFERENCE, OLD_VM_ENABLE_BC_MODE, OLD_VM_LIBRARY, OLD_VM_LIBRARY_DEFAULT, OLD_VM_MAX_DEPTH, OLD_VM_PERM_ALLOW_INLINE, OLD_VM_PERM_ALLOW_INLINE_REPLACE_GLOBAL, OLD_VM_PERM_INLINE_LOCAL
-
Field Details
-
RUNTIME_LOG_INSTANCE
externally provided logger.- See Also:
-
RUNTIME_LOG_NAME
externally provided logger name.- See Also:
-
RUNTIME_LOG_REFERENCE_LOG_INVALID
Logging of invalid references.- See Also:
-
RUNTIME_LOG_METHOD_CALL_LOG_INVALID
Logging of invalid method calls.- See Also:
-
RUNTIME_LOG_TRACK_LOCATION
Whether to:
- populate slf4j's MDC with location in template file
- display VTL stack trace on errors
- Since:
- 2.2
- See Also:
-
MAX_NUMBER_LOOPS
Maximum allowed number of loops.- See Also:
-
SKIP_INVALID_ITERATOR
Whether to throw an exception or just skip bad iterables. Default is true.- Since:
- 1.6
- See Also:
-
CHECK_EMPTY_OBJECTS
An empty object (string, collection) or zero number is false.- Since:
- 2.0
- See Also:
-
ERRORMSG_START
Deprecated.if/how errors are displayed is not the concern of the engine, which should throw in all casesStarting tag for error messages triggered by passing a parameter not allowed in the #include directive. Only string literals, and references are allowed.- See Also:
-
ERRORMSG_END
Deprecated.if/how errors are displayed is not the concern of the engine, which should throw in all casesEnding tag for error messages triggered by passing a parameter not allowed in the #include directive. Only string literals, and references are allowed.- See Also:
-
PARSE_DIRECTIVE_MAXDEPTH
Maximum recursion depth allowed for the #parse directive.- See Also:
-
DEFINE_DIRECTIVE_MAXDEPTH
Maximum recursion depth allowed for the #define directive.- See Also:
-
PROVIDE_SCOPE_CONTROL
Deprecated.usecontext.scope_control.<scope_name> = true/false
Used to suppress various scope control objects (property suffix).- Since:
- 1.7
- See Also:
-
CONTEXT_SCOPE_CONTROL
Used to enable or disable a scope control (false by default):context.scope_control.<scope_name> = true/false
where scope_name is one of:template, evaluate, foreach, macro, define
or the name of a body macro.- Since:
- 2.1
- See Also:
-
CUSTOM_DIRECTIVES
Vector of custom directives- See Also:
-
RESOURCE_MANAGER_INSTANCE
Theresource.manager.instance
property specifies an existing instance of aResourceManager
implementation to use- See Also:
-
RESOURCE_MANAGER_CLASS
Theresource.manager.class
property specifies the name of theResourceManager
implementation to use.- See Also:
-
RESOURCE_MANAGER_CACHE_CLASS
Theresource.manager.cache.class
property specifies the name of theResourceCache
implementation to use.- See Also:
-
RESOURCE_MANAGER_DEFAULTCACHE_SIZE
Theresource.manager.cache.size
property specifies the cache upper bound (if relevant).- See Also:
-
RESOURCE_MANAGER_LOGWHENFOUND
controls if the finding of a resource is logged.- See Also:
-
RESOURCE_LOADERS
Key used to retrieve the names of the resource loaders to be used. In a properties file they may appear as the following:resource.loaders = file,classpath
- See Also:
-
RESOURCE_LOADER
Key prefix for a specific resource loader propertiesresource.loader.file.path = ...
- See Also:
-
FILE_RESOURCE_LOADER_PATH
The public handle for setting paths in the FileResourceLoader. (this constant is used by test cases only)- See Also:
-
FILE_RESOURCE_LOADER_CACHE
The public handle for turning the caching on in the FileResourceLoader.- See Also:
-
RESOURCE_LOADER_CLASS
Resource loader class property suffix- See Also:
-
RESOURCE_LOADER_INSTANCE
Resource loader instance property suffix- See Also:
-
RESOURCE_LOADER_CACHE
Resource loader cache property suffix- See Also:
-
RESOURCE_LOADER_PATHS
File resource loader paths property suffix- See Also:
-
RESOURCE_LOADER_CHECK_INTERVAL
Resource loader modification check interval property suffix- See Also:
-
DS_RESOURCE_LOADER_DATASOURCE_URL
Datasource loader datasource url- See Also:
-
DS_RESOURCE_LOADER_DATASOURCE
Deprecated.UseDS_RESOURCE_LOADER_DATASOURCE_URL
instead.- See Also:
-
DS_RESOURCE_LOADER_TABLE
Datasource loader templates table- See Also:
-
DS_RESOURCE_LOADER_KEY_COLUMN
Datasource loader template key column- See Also:
-
DS_RESOURCE_LOADER_TEMPLATE_COLUMN
Datasource loader template content column- See Also:
-
DS_RESOURCE_LOADER_TIMESTAMP_COLUMN
Datasource loader template timestamp column- See Also:
-
DS_RESOURCE_LOADER_STMT_POOL_MAX_SIZE
Datasource loader statements pool max size- See Also:
-
INPUT_ENCODING
The default character encoding for the templates. Used by the parser in processing the input streams.- See Also:
-
ENCODING_DEFAULT
Default Encoding is UTF-8.- See Also:
-
EVENTHANDLER_REFERENCEINSERTION
Theevent_handler.reference_insertion.class
property specifies a list of theReferenceInsertionEventHandler
implementations to use.- See Also:
-
EVENTHANDLER_METHODEXCEPTION
Theevent_handler.method_exception.class
property specifies a list of theMethodExceptionEventHandler
implementations to use.- See Also:
-
EVENTHANDLER_INCLUDE
Theevent_handler.include.class
property specifies a list of theIncludeEventHandler
implementations to use.- See Also:
-
EVENTHANDLER_INVALIDREFERENCES
Theevent_handler.invalid_references.class
property specifies a list of theInvalidReferenceEventHandler
implementations to use.- See Also:
-
EVENTHANDLER_INVALIDREFERENCES_QUIET
Theevent_handler.invalid_references.quiet
property specifies if invalid quiet references (as in$!foo
) trigger events (defaults to false).InvalidReferenceEventHandler
implementations to use.- Since:
- 2.2
- See Also:
-
EVENTHANDLER_INVALIDREFERENCES_NULL
Theevent_handler.invalid_references.null
property specifies if invalid null references (aka the value is present in the context or parent object but is null or a method returned null) trigger invalid reference events (defaults to false).InvalidReferenceEventHandler
implementations to use.- Since:
- 2.2
- See Also:
-
EVENTHANDLER_INVALIDREFERENCES_TESTED
Theevent_handler.invalid_references.tested
property specifies if invalid tested references (as in#if($foo)
) trigger invalid reference events (defaults to false).InvalidReferenceEventHandler
implementations to use.- Since:
- 2.2
- See Also:
-
VM_LIBRARY
Filename of local Velocimacro library template.- See Also:
-
VM_LIBRARY_DEFAULT
Default Velocimacro library template.- See Also:
-
VM_LIBRARY_AUTORELOAD
switch for autoloading library-sourced VMs (for development).- See Also:
-
VM_PERM_ALLOW_INLINE
boolean (true/false) default true: allow inline (in-template) macro definitions.- See Also:
-
VM_PERM_ALLOW_INLINE_REPLACE_GLOBAL
boolean (true/false) default false: allow inline (in-template) macro definitions to replace existing.- See Also:
-
VM_PERM_INLINE_LOCAL
Switch for forcing inline macros to be local: default false.- See Also:
-
VM_ARGUMENTS_STRICT
if true, throw an exception for wrong number of arguments- See Also:
-
VM_ENABLE_BC_MODE
This flag enable the 1.7 backward compatible mode for velocimacros (defaults to false):- preserve argument literals: when displaying null or invalid non-quiet references, use the argument literal reference instead of the one in the macro block. Defaults to false.
- use global values for missing arguments: when calling a macro with fewer arguments than declared, if those arguments don't have an explicit default value in the macro definition, default values will be looked for in the global context
- Since:
- 2.2
- See Also:
-
VM_MAX_DEPTH
Specify the maximum depth for macro calls- Since:
- 1.6
- See Also:
-
VM_BODY_REFERENCE
Defines name of the reference that can be used to get the AST block passed to block macro calls.- Since:
- 1.7
- See Also:
-
VM_MESSAGES_ON
Deprecated.since 2.1Switch for VM blather: default true. Unused since 2.0.
- See Also:
-
RUNTIME_REFERENCES_STRICT
Properties referenced in the template are required to exist the object- See Also:
-
RUNTIME_REFERENCES_STRICT_ESCAPE
Indicates we are going to use modified escape behavior in strict mode- See Also:
-
UBERSPECT_CLASSNAME
key name for uberspector. Multiple classnames can be specified,in which case uberspectors will be chained.- See Also:
-
INTROSPECTOR_RESTRICT_PACKAGES
A comma separated list of packages to restrict access to in the SecureIntrospector.- See Also:
-
INTROSPECTOR_RESTRICT_CLASSES
A comma separated list of classes to restrict access to in the SecureIntrospector.- See Also:
-
CONVERSION_HANDLER_CLASS
key for Conversion Manager class- See Also:
-
CONVERSION_HANDLER_INSTANCE
key for Conversion Manager instance- See Also:
-
PARSER_CLASS
Property specifying the parser class to use- Since:
- 2.2
- See Also:
-
DEFAULT_PARSER_CLASS
Default parser class- Since:
- 2.2
- See Also:
-
PARSER_POOL_CLASS
Theparser.pool.class
property specifies the name of theSimplePool
implementation to use.- See Also:
-
PARSER_POOL_SIZE
- See Also:
-
PARSER_HYPHEN_ALLOWED
Allow hyphen in identifiers (backward compatibility option)- Since:
- 2.1
- See Also:
-
RUNTIME_STRING_INTERNING
Whether to use string interning.- See Also:
-
INTERPOLATE_STRINGLITERALS
Switch for the interpolation facility for string literals.- See Also:
-
IMMUTABLE_RANGES
Switch for the immutability of integer ranges.- See Also:
-
STRICT_MATH
Switch for ignoring nulls in math equations vs throwing exceptions.- See Also:
-
CONTEXT_AUTOREFERENCE_KEY
Key upon which a context should be accessible within itself- See Also:
-
SPACE_GOBBLING
Space gobbling mode- Since:
- 2.0
- See Also:
-
DEFAULT_RUNTIME_PROPERTIES
Default Runtime properties.- See Also:
-
DEFAULT_RUNTIME_DIRECTIVES
Default Runtime properties.- See Also:
-
DEFAULT_RUNTIME_LOG_NAME
externally provided logger name.- See Also:
-
RESOURCE_LOADER_IDENTIFIER
token used to identify the loader internally.- See Also:
-
NUMBER_OF_PARSERS
static final int NUMBER_OF_PARSERSThe default number of parser instances to create. Configurable via the parameter named by thePARSER_POOL_SIZE
constant.- See Also:
-
DS_RESOURCE_LOADER_DATASOURCE_URL
instead.