aboutsummaryrefslogtreecommitdiff
path: root/velocity-engine-core/src/main/resources/org/apache/velocity
diff options
context:
space:
mode:
authorClaude Brisson <cbrisson@apache.org>2016-07-26 16:11:28 +0000
committerClaude Brisson <cbrisson@apache.org>2016-07-26 16:11:28 +0000
commitfa1c5e1820794e3aa0206d1730343e84db3b0d8e (patch)
treeab749b51b510aca4a207e66b45117613a00d810d /velocity-engine-core/src/main/resources/org/apache/velocity
parent6f025b12a3cc09cff98ca91fbd0a85c249cb0d54 (diff)
downloadapache-velocity-engine-fa1c5e1820794e3aa0206d1730343e84db3b0d8e.tar.gz
New datatypes conversion framework:
- added the new interface o.a.v.util.introspection.ConversionHandler, and the new 'runtime.conversion.handler' configuration property which let the configuration handler be pluggable. - added a default implementation class o.a.v.util.introspection.ConversionHandlerImpl that will implicitly convert method arguments between all basic Java data types (boolean, numbers, string). - added a new Converter<T> interface to represent converters towards type T - added a public VelMethod.getMethod() getter to ease the work of people customizing introspection - added test case ConversionHandlerTestCase - removed half-finished IntrospectionCache 'pluggability' feature: since IntrospectionCache now needs a ConversionHandler a c'tor argument, made it a concrete class and removed IntrospectionCacheImpl. git-svn-id: https://svn.apache.org/repos/asf/velocity/engine/trunk@1754151 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'velocity-engine-core/src/main/resources/org/apache/velocity')
-rw-r--r--velocity-engine-core/src/main/resources/org/apache/velocity/runtime/defaults/velocity.properties8
1 files changed, 8 insertions, 0 deletions
diff --git a/velocity-engine-core/src/main/resources/org/apache/velocity/runtime/defaults/velocity.properties b/velocity-engine-core/src/main/resources/org/apache/velocity/runtime/defaults/velocity.properties
index ac6ba1be..956b605f 100644
--- a/velocity-engine-core/src/main/resources/org/apache/velocity/runtime/defaults/velocity.properties
+++ b/velocity-engine-core/src/main/resources/org/apache/velocity/runtime/defaults/velocity.properties
@@ -186,6 +186,14 @@ parser.pool.size = 20
runtime.introspector.uberspect = org.apache.velocity.util.introspection.UberspectImpl
+# ----------------------------------------------------------------------------
+# CONVERSION HANDLER
+# ----------------------------------------------------------------------------
+# Sets the data types Conversion Handler used by the default uberspector
+# ----------------------------------------------------------------------------
+
+runtime.conversion.handler.class = org.apache.velocity.util.introspection.ConversionHandlerImpl
+
# ----------------------------------------------------------------------------
# SECURE INTROSPECTOR