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 enumSpace gobbling modes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringAn empty object (string, collection) or zero number is false.static final StringKey upon which a context should be accessible within itselfstatic final StringUsed to enable or disable a scope control (false by default):context.scope_control.<scope_name> = true/falsewhere scope_name is one of:template, evaluate, foreach, macro, defineor the name of a body macro.static final Stringkey for Conversion Manager classstatic final Stringkey for Conversion Manager instancestatic final StringVector of custom directivesstatic final StringDefault parser classstatic final StringDefault Runtime properties.static final Stringexternally provided logger name.static final StringDefault Runtime properties.static final StringMaximum recursion depth allowed for the #define directive.static final StringDeprecated.static final StringDatasource loader datasource urlstatic final StringDatasource loader template key columnstatic final StringDatasource loader statements pool max sizestatic final StringDatasource loader templates tablestatic final StringDatasource loader template content columnstatic final StringDatasource loader template timestamp columnstatic final StringDefault Encoding is UTF-8.static final StringDeprecated.if/how errors are displayed is not the concern of the engine, which should throw in all casesstatic final StringDeprecated.if/how errors are displayed is not the concern of the engine, which should throw in all casesstatic final StringTheevent_handler.include.classproperty specifies a list of theIncludeEventHandlerimplementations to use.static final StringTheevent_handler.invalid_references.classproperty specifies a list of theInvalidReferenceEventHandlerimplementations to use.static final StringTheevent_handler.invalid_references.nullproperty 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 StringTheevent_handler.invalid_references.quietproperty specifies if invalid quiet references (as in$!foo) trigger events (defaults to false).static final StringTheevent_handler.invalid_references.testedproperty specifies if invalid tested references (as in#if($foo)) trigger invalid reference events (defaults to false).static final StringTheevent_handler.method_exception.classproperty specifies a list of theMethodExceptionEventHandlerimplementations to use.static final StringTheevent_handler.reference_insertion.classproperty specifies a list of theReferenceInsertionEventHandlerimplementations to use.static final StringThe public handle for turning the caching on in the FileResourceLoader.static final StringThe public handle for setting paths in the FileResourceLoader.static final StringSwitch for the immutability of integer ranges.static final StringThe default character encoding for the templates.static final StringSwitch for the interpolation facility for string literals.static final StringA comma separated list of classes to restrict access to in the SecureIntrospector.static final StringA comma separated list of packages to restrict access to in the SecureIntrospector.static final StringMaximum allowed number of loops.static final intThe default number of parser instances to create.static final StringMaximum recursion depth allowed for the #parse directive.static final StringProperty specifying the parser class to usestatic final StringAllow hyphen in identifiers (backward compatibility option)static final StringTheparser.pool.classproperty specifies the name of theSimplePoolimplementation to use.static final Stringstatic final StringDeprecated.usecontext.scope_control.<scope_name> = true/falsestatic final StringKey prefix for a specific resource loader propertiesstatic final StringResource loader cache property suffixstatic final StringResource loader modification check interval property suffixstatic final StringResource loader class property suffixstatic final Stringtoken used to identify the loader internally.static final StringResource loader instance property suffixstatic final StringFile resource loader paths property suffixstatic final StringKey used to retrieve the names of the resource loaders to be used.static final StringTheresource.manager.cache.classproperty specifies the name of theResourceCacheimplementation to use.static final StringTheresource.manager.classproperty specifies the name of theResourceManagerimplementation to use.static final StringTheresource.manager.cache.sizeproperty specifies the cache upper bound (if relevant).static final StringTheresource.manager.instanceproperty specifies an existing instance of aResourceManagerimplementation to usestatic final Stringcontrols if the finding of a resource is logged.static final Stringexternally provided logger.static final StringLogging of invalid method calls.static final Stringexternally provided logger name.static final StringLogging of invalid references.static final StringWhether to:static final StringProperties referenced in the template are required to exist the objectstatic final StringIndicates we are going to use modified escape behavior in strict modestatic final StringWhether to use string interning.static final StringWhether to throw an exception or just skip bad iterables.static final StringSpace gobbling modestatic final StringSwitch for ignoring nulls in math equations vs throwing exceptions.static final Stringkey name for uberspector.static final Stringif true, throw an exception for wrong number of argumentsstatic final StringDefines name of the reference that can be used to get the AST block passed to block macro calls.static final StringThis 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 StringFilename of local Velocimacro library template.static final Stringswitch for autoloading library-sourced VMs (for development).static final StringDefault Velocimacro library template.static final StringSpecify the maximum depth for macro callsstatic final StringDeprecated.since 2.1static final Stringboolean (true/false) default true: allow inline (in-template) macro definitions.static final Stringboolean (true/false) default false: allow inline (in-template) macro definitions to replace existing.static final StringSwitch 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/falseUsed 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/falsewhere scope_name is one of:template, evaluate, foreach, macro, defineor the name of a body macro.- Since:
- 2.1
- See Also:
-
CUSTOM_DIRECTIVES
Vector of custom directives- See Also:
-
RESOURCE_MANAGER_INSTANCE
Theresource.manager.instanceproperty specifies an existing instance of aResourceManagerimplementation to use- See Also:
-
RESOURCE_MANAGER_CLASS
Theresource.manager.classproperty specifies the name of theResourceManagerimplementation to use.- See Also:
-
RESOURCE_MANAGER_CACHE_CLASS
Theresource.manager.cache.classproperty specifies the name of theResourceCacheimplementation to use.- See Also:
-
RESOURCE_MANAGER_DEFAULTCACHE_SIZE
Theresource.manager.cache.sizeproperty 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_URLinstead.- 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.classproperty specifies a list of theReferenceInsertionEventHandlerimplementations to use.- See Also:
-
EVENTHANDLER_METHODEXCEPTION
Theevent_handler.method_exception.classproperty specifies a list of theMethodExceptionEventHandlerimplementations to use.- See Also:
-
EVENTHANDLER_INCLUDE
Theevent_handler.include.classproperty specifies a list of theIncludeEventHandlerimplementations to use.- See Also:
-
EVENTHANDLER_INVALIDREFERENCES
Theevent_handler.invalid_references.classproperty specifies a list of theInvalidReferenceEventHandlerimplementations to use.- See Also:
-
EVENTHANDLER_INVALIDREFERENCES_QUIET
Theevent_handler.invalid_references.quietproperty specifies if invalid quiet references (as in$!foo) trigger events (defaults to false).InvalidReferenceEventHandlerimplementations to use.- Since:
- 2.2
- See Also:
-
EVENTHANDLER_INVALIDREFERENCES_NULL
Theevent_handler.invalid_references.nullproperty 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).InvalidReferenceEventHandlerimplementations to use.- Since:
- 2.2
- See Also:
-
EVENTHANDLER_INVALIDREFERENCES_TESTED
Theevent_handler.invalid_references.testedproperty specifies if invalid tested references (as in#if($foo)) trigger invalid reference events (defaults to false).InvalidReferenceEventHandlerimplementations 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.classproperty specifies the name of theSimplePoolimplementation 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_SIZEconstant.- See Also:
-
DS_RESOURCE_LOADER_DATASOURCE_URLinstead.