You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by lu...@apache.org on 2011/12/22 08:08:21 UTC
svn commit: r1222075 -
/struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/ObjectFactory.java
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);
}