Commits

Anonymous committed 55c67d8

avoid custom ObjectFactory implementations to have to implement both buildBean methods.
Issue number: XW-290
Obtained from:
Submitted by: Gr�gory Joseph
Reviewed by: Rainer Hermanns

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

  • Participants
  • Parent commits 2a5332e

Comments (0)

Files changed (1)

src/java/com/opensymphony/xwork/ObjectFactory.java

     public Object buildBean(String className, Map extraContext) throws Exception {
         Class clazz = getClassInstance(className);
 
-        return clazz.newInstance();
+        return buildBean(clazz, extraContext);
     }
 
     /**