commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1309930 - /commons/proper/digester/trunk/annotations-processor/src/main/java/org/apache/commons/digester3/annotations/processor/DigesterAnnotationsProcessor.java
Date Thu, 05 Apr 2012 16:33:37 GMT
Author: simonetripodi
Date: Thu Apr  5 16:33:37 2012
New Revision: 1309930

URL: http://svn.apache.org/viewvc?rev=1309930&view=rev
Log:
generated RuleModule classes have to inherit from AbstractRulesModule

Modified:
    commons/proper/digester/trunk/annotations-processor/src/main/java/org/apache/commons/digester3/annotations/processor/DigesterAnnotationsProcessor.java

Modified: commons/proper/digester/trunk/annotations-processor/src/main/java/org/apache/commons/digester3/annotations/processor/DigesterAnnotationsProcessor.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/annotations-processor/src/main/java/org/apache/commons/digester3/annotations/processor/DigesterAnnotationsProcessor.java?rev=1309930&r1=1309929&r2=1309930&view=diff
==============================================================================
--- commons/proper/digester/trunk/annotations-processor/src/main/java/org/apache/commons/digester3/annotations/processor/DigesterAnnotationsProcessor.java
(original)
+++ commons/proper/digester/trunk/annotations-processor/src/main/java/org/apache/commons/digester3/annotations/processor/DigesterAnnotationsProcessor.java
Thu Apr  5 16:33:37 2012
@@ -52,6 +52,7 @@ import org.apache.commons.digester3.anno
 import org.apache.commons.digester3.annotations.rules.SetProperty;
 import org.apache.commons.digester3.annotations.rules.SetRoot;
 import org.apache.commons.digester3.annotations.rules.SetTop;
+import org.apache.commons.digester3.binder.AbstractRulesModule;
 import org.kohsuke.MetaInfServices;
 
 import com.sun.codemodel.JClassAlreadyExistsException;
@@ -111,6 +112,7 @@ public class DigesterAnnotationsProcesso
         {
             JDefinedClass definedClass = modulePackage._class( FINAL | PUBLIC, className
);
             definedClass.javadoc().add( format( "Generated by Apache Commons Digester at
%s", new Date() ) );
+            definedClass._extends( AbstractRulesModule.class );
 
             JMethod method = definedClass.method( PROTECTED, Void.class, "configure" );
             method.annotate( Override.class );



Mime
View raw message