Author: simonetripodi Date: Thu Jul 8 13:03:31 2010 New Revision: 961749 URL: http://svn.apache.org/viewvc?rev=961749&view=rev Log: no need to define an interface method as abstract
Modified: commons/sandbox/at-digester/trunk/src/java/org/apache/commons/digester/annotations/AnnotationRuleProvider.java Modified: commons/sandbox/at-digester/trunk/src/java/org/apache/commons/digester/annotations/AnnotationRuleProvider.java URL: http://svn.apache.org/viewvc/commons/sandbox/at-digester/trunk/src/java/org/apache/commons/digester/annotations/AnnotationRuleProvider.java?rev=961749&r1=961748&r2=961749&view=diff ============================================================================== --- commons/sandbox/at-digester/trunk/src/java/org/apache/commons/digester/annotations/AnnotationRuleProvider.java (original) +++ commons/sandbox/at-digester/trunk/src/java/org/apache/commons/digester/annotations/AnnotationRuleProvider.java Thu Jul 8 13:03:31 2010 @@ -27,17 +27,7 @@ import org.apache.commons.digester.Rule; * @version $Id$ * @since 2.1 */ -public abstract class AnnotationRuleProvider<A extends Annotation, E extends AnnotatedElement, R extends Rule> { - - /** - * The annotation instance reference. - */ - private final A annotation; - - /** - * The annotated element reference. - */ - private final E element; +public interface AnnotationRuleProvider<A extends Annotation, E extends AnnotatedElement, R extends Rule> { /** * Initializes the provider. @@ -45,28 +35,7 @@ public abstract class AnnotationRuleProv * @param annotation the annotation instance. * @param element the annotated element reference. */ - public AnnotationRuleProvider(A annotation, E element) { - this.annotation = annotation; - this.element = element; - } - - /** - * Returns the annotation instance. - * - * @return the annotation instance. - */ - public A getAnnotation() { - return this.annotation; - } - - /** - * Returns the annotation instance. - * - * @return the annotation instance. - */ - public E getElement() { - return this.element; - } + void init(A annotation, E element); /** * Provides an instance of {...@link Rule}. @@ -75,6 +44,6 @@ public abstract class AnnotationRuleProv * * @return an instance of {...@link Rule}. */ - public abstract R get(); + public R get(); }