commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1063524 - /commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/RulesBinder.java
Date Tue, 25 Jan 2011 23:35:32 GMT
Author: simonetripodi
Date: Tue Jan 25 23:35:31 2011
New Revision: 1063524

URL: http://svn.apache.org/viewvc?rev=1063524&view=rev
Log:
added method to register a converter

Modified:
    commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/RulesBinder.java

Modified: commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/RulesBinder.java
URL: http://svn.apache.org/viewvc/commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/RulesBinder.java?rev=1063524&r1=1063523&r2=1063524&view=diff
==============================================================================
--- commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/RulesBinder.java
(original)
+++ commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/RulesBinder.java
Tue Jan 25 23:35:31 2011
@@ -17,6 +17,7 @@
  */
 package org.apache.commons.digester3;
 
+import org.apache.commons.digester3.rulesbinder.ConverterBuilder;
 import org.apache.commons.digester3.rulesbinder.LinkedRuleBuilder;
 
 /**
@@ -61,4 +62,13 @@ public interface RulesBinder {
      */
     LinkedRuleBuilder forPattern(String pattern);
 
+    /**
+     * Allows to associate the given type to one {@link org.apache.commons.digester3.spi.TypeConverter}.
+     *
+     * @param <T>
+     * @param type
+     * @return
+     */
+    <T> ConverterBuilder<T> convert(Class<T> type);
+
 }



Mime
View raw message