Commits

Anonymous committed d4c5ee1

easy shortcut to disable xwork-tiger support
Issue number:
Obtained from:
Submitted by:
Reviewed by:

git-svn-id: http://svn.opensymphony.com/svn/webwork/trunk@2104573baa09-0c28-0410-bef9-dab3c582ae83

Comments (0)

Files changed (2)

src/java/com/opensymphony/webwork/default.properties

 # webwork.objectFactory = spring
 
 ### if specified, the default object type determiner can be overridden here
-### Note: short-hand notation is supported in some cases, such as "tiger"
-###       Alternatively, you can provide a com.opensymphony.xwork.ObjectTypeDeterminer implementation name here
+### Note: short-hand notation is supported in some cases, such as "tiger" or "notiger"
+###       Alternatively, you can provide a com.opensymphony.xwork.util.ObjectTypeDeterminer implementation name here
 ### Note: if you have the xwork-tiger.jar within your classpath, GenericsObjectTypeDeterminer is used by default
+###       To disable tiger support use the "notiger" property value here.
 #webwork.objectTypeDeterminer = tiger
+#webwork.objectTypeDeterminer = notiger
 
 ### specifies the autoWiring logic when using the SpringObjectFactory.
 ### valid values are: name, type, auto, and constructor (name is the default)

src/java/com/opensymphony/webwork/dispatcher/DispatcherUtils.java

                 //       dependencies on xwork-tiger, since it isn't technically required.
                 className = "com.opensymphony.xwork.util.GenericsObjectTypeDeterminer";
             }
+            else if (className.equals("notiger")) {
+                className = "com.opensymphony.xwork.util.ObjectTypeDeterminer";
+            }
 
             try {
                 Class clazz = ClassLoaderUtil.loadClass(className, DispatcherUtils.class);