Author: simonetripodi Date: Mon Jan 11 17:02:50 2010 New Revision: 897945 URL: http://svn.apache.org/viewvc?rev=897945&view=rev Log: added the default handler has to be executed when analyzing a Digester annotation
Modified: commons/sandbox/at-digester/trunk/src/java/org/apache/commons/digester/annotations/DigesterRule.java Modified: commons/sandbox/at-digester/trunk/src/java/org/apache/commons/digester/annotations/DigesterRule.java URL: http://svn.apache.org/viewvc/commons/sandbox/at-digester/trunk/src/java/org/apache/commons/digester/annotations/DigesterRule.java?rev=897945&r1=897944&r2=897945&view=diff ============================================================================== --- commons/sandbox/at-digester/trunk/src/java/org/apache/commons/digester/annotations/DigesterRule.java (original) +++ commons/sandbox/at-digester/trunk/src/java/org/apache/commons/digester/annotations/DigesterRule.java Mon Jan 11 17:02:50 2010 @@ -25,6 +25,7 @@ import java.lang.reflect.AnnotatedElement; import org.apache.commons.digester.Rule; +import org.apache.commons.digester.annotations.handlers.DefaultLoaderHandler; /** * Meta-annotation that marks an annotation as part of commons-digester. @@ -45,6 +46,14 @@ Class<? extends Rule> reflectsRule(); /** + * The handler that takes care on converting this annotation in the related + * {...@link AnnotationRuleProvider} and adds it o the {...@link FromAnnotationsRuleSet} + * + * @return + */ + Class<? extends DigesterLoaderHandler<? extends Annotation, ? extends AnnotatedElement>> handledBy() default DefaultLoaderHandler.class; + + /** * Define the {...@link AnnotationRuleProvider} that builds the {...@link Rule} * related to the digester rule. *