struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lukaszlen...@apache.org
Subject svn commit: r1222075 - /struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/ObjectFactory.java
Date Thu, 22 Dec 2011 07:08:21 GMT
Author: lukaszlenart
Date: Thu Dec 22 07:08:20 2011
New Revision: 1222075

URL: http://svn.apache.org/viewvc?rev=1222075&view=rev
Log:
WW-3414 add JavaDoc comments about new API

Modified:
    struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/ObjectFactory.java

Modified: struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/ObjectFactory.java
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/ObjectFactory.java?rev=1222075&r1=1222074&r2=1222075&view=diff
==============================================================================
--- struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/ObjectFactory.java
(original)
+++ struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/ObjectFactory.java
Thu Dec 22 07:08:20 2011
@@ -257,6 +257,13 @@ public class ObjectFactory implements Se
         return validator;
     }
 
+    /**
+     * Build converter of given type - it must be registered with {@link Container} first
+     * It's the first attempt to use Object Factory to build Converters, so the API can change
in the future
+     * 
+     * @param converterClass to instantiate
+     * @return instance of converterClass with inject dependencies
+     */
     public TypeConverter buildConverter(Class<? extends TypeConverter> converterClass)
{
         return container.getInstance(converterClass);
     }



Mime
View raw message