Commits

rainerh  committed c7beb5d

can't autowire actions with no public no-arg constructor
Issue number: XW-315

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

  • Participants
  • Parent commits 8105e01

Comments (0)

Files changed (1)

File src/java/com/opensymphony/xwork/spring/SpringObjectFactory.java

      * Looks up beans using Spring's application context before falling back to the method defined in the {@link
      * ObjectFactory}.
      *
-     * @param beanName The name of the bean to look up in the application context
+     * @param beanName     The name of the bean to look up in the application context
      * @param extraContext
      * @return A bean from Spring or the result of calling the overridden
      *         method.
     public void initObjectFactory() {
         ObjectFactory.setObjectFactory(this);
     }
+
+    /**
+     * Allows for ObjectFactory implementations that support
+     * Actions without no-arg constructors.
+     *
+     * @return false
+     */
+    public boolean isNoArgConstructorRequired() {
+        return false;
+    }
 }