Commits

Anonymous committed a44a5a0

XW-241 (no-arg constructors).

git-svn-id: http://svn.opensymphony.com/svn/xwork/trunk@381e221344d-f017-0410-9bd5-d282ab1896d7

  • Participants
  • Parent commits d630c21

Comments (0)

Files changed (1)

src/java/com/opensymphony/xwork/config/providers/XmlConfigurationProvider.java

         }
 
         try {
-            ActionConfig actionConfig = new ActionConfig(null, className, null, null, null);
-            Action action = ObjectFactory.getObjectFactory().buildAction(actionConfig);
+            if (ObjectFactory.getObjectFactory().isNoArgConstructorRequired()) {
+                ActionConfig actionConfig = new ActionConfig(null, className, null, null, null);
+                ObjectFactory.getObjectFactory().buildAction(actionConfig);
+            }
+            else {
+                ObjectFactory.getObjectFactory().getClassInstance(className);
+            }
         } catch (Exception e) { // TODO: Not pretty
             LOG.error("Action class [" + className + "] not found, skipping action [" + name + "]", e);