aboutsummaryrefslogtreecommitdiff
path: root/velocity-engine-core/src/main/java/org/apache/velocity/runtime/DeprecatedRuntimeConstants.java
blob: 3789a76eccc0d1dcb574607e4fcbe6c0fd8aca09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
package org.apache.velocity.runtime;

/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

/**
 * This class gathers deprecated runtime constants
 *
 * @author  <a href="mailto:claude@renegat.net">Claude Brisson</a>
 * @version  $$
 */

@Deprecated
public interface DeprecatedRuntimeConstants
{
    /**
     * Logging of invalid references.
     * @deprecated see {@link RuntimeConstants#RUNTIME_LOG_REFERENCE_LOG_INVALID}
     */
    String OLD_RUNTIME_LOG_REFERENCE_LOG_INVALID = "runtime.log.invalid.references";

    /**
     * Maximum allowed number of loops.
     * @deprecated see {@link RuntimeConstants#MAX_NUMBER_LOOPS}
     */
    String OLD_MAX_NUMBER_LOOPS = "directive.foreach.maxloops";

    /**
     * Whether to throw an exception or just skip bad iterables. Default is true.
     * @since 1.6
     * @deprecated see {@link RuntimeConstants#SKIP_INVALID_ITERATOR}
     */
    String OLD_SKIP_INVALID_ITERATOR = "directive.foreach.skip.invalid";

    /**
     * An empty object (string, collection) or zero number is false.
     * @since 2.0
     * @deprecated see {@link RuntimeConstants#CHECK_EMPTY_OBJECTS}
     */
    String OLD_CHECK_EMPTY_OBJECTS = "directive.if.emptycheck";

    /**
     * Starting tag for error messages triggered by passing a parameter not allowed in the #include directive. Only string literals,
     * and references are allowed.
     * @deprecated see {@link RuntimeConstants#ERRORMSG_START}
     */
    String OLD_ERRORMSG_START = "directive.include.output.errormsg.start";

    /**
     * Ending tag for error messages triggered by passing a parameter not allowed in the #include directive. Only string literals,
     * and references are allowed.
     * @deprecated see {@link RuntimeConstants#ERRORMSG_END}
     */
    String OLD_ERRORMSG_END = "directive.include.output.errormsg.end";

    /**
     * Maximum recursion depth allowed for the #parse directive.
     * @deprecated see {@link RuntimeConstants#PARSE_DIRECTIVE_MAXDEPTH}
     */
    String OLD_PARSE_DIRECTIVE_MAXDEPTH = "directive.parse.max.depth";

    /**
     * Maximum recursion depth allowed for the #define directive.
     * @deprecated see {@link RuntimeConstants#DEFINE_DIRECTIVE_MAXDEPTH}
     */
    String OLD_DEFINE_DIRECTIVE_MAXDEPTH = "directive.define.max.depth";

    /**
     * Vector of custom directives
     * @deprecated  see {@link RuntimeConstants#CUSTOM_DIRECTIVES}
     */
    String OLD_CUSTOM_DIRECTIVES = "userdirective";

    /**
     * The <code>resource.manager.cache.size</code> property specifies the cache upper bound (if relevant).
     * @deprecated see {@link RuntimeConstants#RESOURCE_MANAGER_DEFAULTCACHE_SIZE}
     */
    String OLD_RESOURCE_MANAGER_DEFAULTCACHE_SIZE = "resource.manager.defaultcache.size";

    /**
     * controls if the finding of a resource is logged.
     * @deprecated see {@link RuntimeConstants#RESOURCE_MANAGER_LOGWHENFOUND}
     */
    String OLD_RESOURCE_MANAGER_LOGWHENFOUND = "resource.manager.logwhenfound";

    /**
     * Key used to retrieve the names of the resource loaders to be used. In a properties file they may appear as the following:
     * <p>resource.loader = file,classpath</p>
     * @deprecated see {@link RuntimeConstants#RESOURCE_LOADERS}
     */
    String OLD_RESOURCE_LOADERS = "resource.loader";

    /**
     * The public handle for setting a path in the FileResourceLoader.
     * @deprecated see {@link RuntimeConstants#FILE_RESOURCE_LOADER_PATH}
     */
    String OLD_FILE_RESOURCE_LOADER_PATH = "file.resource.loader.path";

    /**
     * The public handle for turning the caching on in the FileResourceLoader.
     * @deprecated see {@link RuntimeConstants#FILE_RESOURCE_LOADER_CACHE}
     */
    String OLD_FILE_RESOURCE_LOADER_CACHE = "file.resource.loader.cache";

    /**
     * Resource loader modification check interval property suffix
     */
    String OLD_RESOURCE_LOADER_CHECK_INTERVAL = "modificationCheckInterval";

    /**
     * Datasource loader datasource url
     * @deprecated see {@link RuntimeConstants#DS_RESOURCE_LOADER_DATASOURCE}
     */
    String OLD_DS_RESOURCE_LOADER_DATASOURCE = "ds.resource.loader.resource.datasource";

    /**
     * Datasource loader template key column
     * @deprecated see {@link RuntimeConstants#DS_RESOURCE_LOADER_KEY_COLUMN}
     */
    String OLD_DS_RESOURCE_LOADER_KEY_COLUMN = "ds.resource.loader.resource.keycolumn";

    /**
     * Datasource loader template content column
     * @deprecated see {@link RuntimeConstants#DS_RESOURCE_LOADER_TEMPLATE_COLUMN}
     */
    String OLD_DS_RESOURCE_LOADER_TEMPLATE_COLUMN = "ds.resource.loader.resource.templatecolumn";

    /**
     * Datasource loader template timestamp column
     * @deprecated see {@link RuntimeConstants#DS_RESOURCE_LOADER_TIMESTAMP_COLUMN}
     */
    String OLD_DS_RESOURCE_LOADER_TIMESTAMP_COLUMN = "ds.resource.loader.resource.timestampcolumn";

    /**
     * The default character encoding for the templates. Used by the parser in processing the input streams.
     * @deprecated see {@link RuntimeConstants#INPUT_ENCODING}
     */
    String OLD_INPUT_ENCODING = "input.encoding";

    /**
     * The <code>eventhandler.referenceinsertion.class</code> property specifies a list of the
     * {@link org.apache.velocity.app.event.ReferenceInsertionEventHandler} implementations to use.
     * @deprecated see {@link RuntimeConstants#EVENTHANDLER_REFERENCEINSERTION}
     */
    String OLD_EVENTHANDLER_REFERENCEINSERTION = "eventhandler.referenceinsertion.class";

    /**
     * The <code>eventhandler.methodexception.class</code> property specifies a list of the
     * {@link org.apache.velocity.app.event.MethodExceptionEventHandler} implementations to use.
     * @deprecated see {@link RuntimeConstants#EVENTHANDLER_METHODEXCEPTION}
     */
    String OLD_EVENTHANDLER_METHODEXCEPTION = "eventhandler.methodexception.class";

    /**
     * The <code>eventhandler.include.class</code> property specifies a list of the
     * {@link org.apache.velocity.app.event.IncludeEventHandler} implementations to use.
     * @deprecated see {@link RuntimeConstants#EVENTHANDLER_INCLUDE}
     */
    String OLD_EVENTHANDLER_INCLUDE = "eventhandler.include.class";

    /**
     * The <code>eventhandler.invalidreferences.class</code> property specifies a list of the
     * {@link org.apache.velocity.app.event.InvalidReferenceEventHandler} implementations to use.
     * @deprecated see {@link RuntimeConstants#EVENTHANDLER_INVALIDREFERENCES}
     */
    String OLD_EVENTHANDLER_INVALIDREFERENCES = "eventhandler.invalidreferences.class";

    /**
     * Name of local Velocimacro library template.
     * @deprecated see {@link RuntimeConstants#VM_LIBRARY}
     */
    String OLD_VM_LIBRARY = "velocimacro.library";

    /**
     * Default Velocimacro library template.
     * @deprecated see {@link RuntimeConstants#VM_LIBRARY_DEFAULT}
     */
    String OLD_VM_LIBRARY_DEFAULT = "VM_global_library.vm";

    /**
     * boolean (true/false) default true: allow inline (in-template) macro definitions.
     * @deprecated see {@link RuntimeConstants#VM_PERM_ALLOW_INLINE}
     */
    String OLD_VM_PERM_ALLOW_INLINE = "velocimacro.permissions.allow.inline";

    /**
     * boolean (true/false) default false: allow inline (in-template) macro definitions to replace existing.
     * @deprecated see {@link RuntimeConstants#VM_PERM_ALLOW_INLINE_REPLACE_GLOBAL}
     */
    String OLD_VM_PERM_ALLOW_INLINE_REPLACE_GLOBAL = "velocimacro.permissions.allow.inline.to.replace.global";

    /**
     * Switch for forcing inline macros to be local: default false.
     * @deprecated see {@link RuntimeConstants#VM_PERM_INLINE_LOCAL}
     */
    String OLD_VM_PERM_INLINE_LOCAL = "velocimacro.permissions.allow.inline.local.scope";

    /**
     * Specify the maximum depth for macro calls
     * @since 1.6
     * @deprecated see {@link RuntimeConstants#VM_MAX_DEPTH}
     */
    String OLD_VM_MAX_DEPTH = "velocimacro.max.depth";

    /**
     * Defines name of the reference that can be used to get the AST block passed to block macro calls.
     * @since 1.7
     * @deprecated see {@link RuntimeConstants#VM_BODY_REFERENCE}
     */
    String OLD_VM_BODY_REFERENCE = "velocimacro.body.reference";

    /**
     * Properties referenced in the template are required to exist the object
     * @deprecated see {@link RuntimeConstants#RUNTIME_REFERENCES_STRICT}
     */
    String OLD_RUNTIME_REFERENCES_STRICT = "runtime.references.strict";

    /**
     * Indicates we are going to use modified escape behavior in strict mode
     * @deprecated see {@link RuntimeConstants#RUNTIME_REFERENCES_STRICT_ESCAPE}
     */
    String OLD_RUNTIME_REFERENCES_STRICT_ESCAPE = "runtime.references.strict.escape";

    /**
     * key name for uberspector. Multiple classnames can be specified,in which case uberspectors will be chained.
     * @deprecated see {@link RuntimeConstants#UBERSPECT_CLASSNAME}
     */
    String OLD_UBERSPECT_CLASSNAME = "runtime.introspector.uberspect";

    /**
     * key for Conversion Manager class
     * @deprecated see {@link RuntimeConstants#CONVERSION_HANDLER_INSTANCE}
     */
    String OLD_CONVERSION_HANDLER_CLASS = "introspector.conversion_handler.class";
    
    /**
     * Switch for the interpolation facility for string literals.
     * @deprecated see {@link RuntimeConstants#INTERPOLATE_STRINGLITERALS}
     */
    String OLD_INTERPOLATE_STRINGLITERALS = "runtime.interpolate.string.literals";

    /**
     * Switch for ignoring nulls in math equations vs throwing exceptions.
     * @deprecated see {@link RuntimeConstants#STRICT_MATH}
     */
    String OLD_STRICT_MATH = "runtime.strict.math";

    /**
     * Key upon which a context should be accessible within itself
     * @deprecated see {@link RuntimeConstants#CONTEXT_AUTOREFERENCE_KEY}
     */
    String OLD_CONTEXT_AUTOREFERENCE_KEY = "context.autoreference.key";

    /**
     * Space gobbling mode
     * @since 2.0
     * @deprecated see {@link RuntimeConstants#SPACE_GOBBLING}
     */
    String OLD_SPACE_GOBBLING = "space.gobbling";

    /**
     * When displaying null or invalid non-quiet references, use the argument literal reference
     * instead of the one in the macro block. Defaults to false.
     * @since 2.1
     * @Deprecated since 2.2, see {@link RuntimeConstants#VM_ENABLE_BC_MODE}
     **/
    String OLD_VM_ENABLE_BC_MODE = "velocimacro.arguments.preserve_literals";

}