commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1213080 - in /commons/sandbox/meiyo/trunk/src: main/java/org/apache/commons/meiyo/classvisitor/ test/java/org/apache/commons/meiyo/classvisitor/
Date Sun, 11 Dec 2011 21:32:14 GMT
Author: simonetripodi
Date: Sun Dec 11 21:32:14 2011
New Revision: 1213080

URL: http://svn.apache.org/viewvc?rev=1213080&view=rev
Log:
the visitor is not a class visitor, but rather discover annotations while traversing the class
hierarchy

Added:
    commons/sandbox/meiyo/trunk/src/main/java/org/apache/commons/meiyo/classvisitor/AnnotatedClassVisitor.java
  (contents, props changed)
      - copied, changed from r1213071, commons/sandbox/meiyo/trunk/src/main/java/org/apache/commons/meiyo/classvisitor/ClassVisitor.java
    commons/sandbox/meiyo/trunk/src/test/java/org/apache/commons/meiyo/classvisitor/AnnotatedClassVisitorTestCase.java
  (contents, props changed)
      - copied, changed from r1213059, commons/sandbox/meiyo/trunk/src/test/java/org/apache/commons/meiyo/classvisitor/ClassVisitorTestCase.java
Removed:
    commons/sandbox/meiyo/trunk/src/main/java/org/apache/commons/meiyo/classvisitor/ClassVisitor.java
    commons/sandbox/meiyo/trunk/src/test/java/org/apache/commons/meiyo/classvisitor/ClassVisitorTestCase.java

Copied: commons/sandbox/meiyo/trunk/src/main/java/org/apache/commons/meiyo/classvisitor/AnnotatedClassVisitor.java
(from r1213071, commons/sandbox/meiyo/trunk/src/main/java/org/apache/commons/meiyo/classvisitor/ClassVisitor.java)
URL: http://svn.apache.org/viewvc/commons/sandbox/meiyo/trunk/src/main/java/org/apache/commons/meiyo/classvisitor/AnnotatedClassVisitor.java?p2=commons/sandbox/meiyo/trunk/src/main/java/org/apache/commons/meiyo/classvisitor/AnnotatedClassVisitor.java&p1=commons/sandbox/meiyo/trunk/src/main/java/org/apache/commons/meiyo/classvisitor/ClassVisitor.java&r1=1213071&r2=1213080&rev=1213080&view=diff
==============================================================================
--- commons/sandbox/meiyo/trunk/src/main/java/org/apache/commons/meiyo/classvisitor/ClassVisitor.java
(original)
+++ commons/sandbox/meiyo/trunk/src/main/java/org/apache/commons/meiyo/classvisitor/AnnotatedClassVisitor.java
Sun Dec 11 21:32:14 2011
@@ -34,7 +34,7 @@ import java.util.Collection;
 /**
  * A {@code ClassVisitor} traverses input classes for the whole hierarchy, and for every
annotated element member
  */
-public final class ClassVisitor
+public final class AnnotatedClassVisitor
 {
 
     /**
@@ -43,7 +43,7 @@ public final class ClassVisitor
      * @param configurations the configurations needed to set-up the visitor.
      * @return a new {@code ClassVisitor} instance.
      */
-    public static ClassVisitor createVisitor( VisitorConfiguration... configurations )
+    public static AnnotatedClassVisitor createVisitor( VisitorConfiguration... configurations
)
     {
         if ( configurations == null || configurations.length == 0 )
         {
@@ -58,7 +58,7 @@ public final class ClassVisitor
      * @param configurations the configurations needed to set-up the visitor.
      * @return a new {@code ClassVisitor} instance.
      */
-    public static ClassVisitor createVisitor( Collection<VisitorConfiguration> configurations
)
+    public static AnnotatedClassVisitor createVisitor( Collection<VisitorConfiguration>
configurations )
     {
         if ( configurations == null || configurations.isEmpty() )
         {
@@ -71,7 +71,7 @@ public final class ClassVisitor
             module.configure( binderImpl );
         }
 
-        return new ClassVisitor( binderImpl );
+        return new AnnotatedClassVisitor( binderImpl );
     }
 
     private static final String JAVA_PACKAGE = "java";
@@ -83,7 +83,7 @@ public final class ClassVisitor
      *
      * @param binder an already configured binder.
      */
-    private ClassVisitor( final DefaultAnnotationHandlerBinder binder )
+    private AnnotatedClassVisitor( final DefaultAnnotationHandlerBinder binder )
     {
         this.binder = binder;
     }

Propchange: commons/sandbox/meiyo/trunk/src/main/java/org/apache/commons/meiyo/classvisitor/AnnotatedClassVisitor.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: commons/sandbox/meiyo/trunk/src/main/java/org/apache/commons/meiyo/classvisitor/AnnotatedClassVisitor.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: commons/sandbox/meiyo/trunk/src/main/java/org/apache/commons/meiyo/classvisitor/AnnotatedClassVisitor.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Copied: commons/sandbox/meiyo/trunk/src/test/java/org/apache/commons/meiyo/classvisitor/AnnotatedClassVisitorTestCase.java
(from r1213059, commons/sandbox/meiyo/trunk/src/test/java/org/apache/commons/meiyo/classvisitor/ClassVisitorTestCase.java)
URL: http://svn.apache.org/viewvc/commons/sandbox/meiyo/trunk/src/test/java/org/apache/commons/meiyo/classvisitor/AnnotatedClassVisitorTestCase.java?p2=commons/sandbox/meiyo/trunk/src/test/java/org/apache/commons/meiyo/classvisitor/AnnotatedClassVisitorTestCase.java&p1=commons/sandbox/meiyo/trunk/src/test/java/org/apache/commons/meiyo/classvisitor/ClassVisitorTestCase.java&r1=1213059&r2=1213080&rev=1213080&view=diff
==============================================================================
--- commons/sandbox/meiyo/trunk/src/test/java/org/apache/commons/meiyo/classvisitor/ClassVisitorTestCase.java
(original)
+++ commons/sandbox/meiyo/trunk/src/test/java/org/apache/commons/meiyo/classvisitor/AnnotatedClassVisitorTestCase.java
Sun Dec 11 21:32:14 2011
@@ -20,7 +20,7 @@ package org.apache.commons.meiyo.classvi
  */
 
 import static org.junit.Assert.assertTrue;
-import static org.apache.commons.meiyo.classvisitor.ClassVisitor.createVisitor;
+import static org.apache.commons.meiyo.classvisitor.AnnotatedClassVisitor.createVisitor;
 
 import java.lang.reflect.Constructor;
 import java.lang.reflect.Method;
@@ -31,7 +31,7 @@ import org.junit.Test;
 /**
  * FILL ME.
  */
-public final class ClassVisitorTestCase
+public final class AnnotatedClassVisitorTestCase
 {
 
     private boolean foundClassAnnotation = false;

Propchange: commons/sandbox/meiyo/trunk/src/test/java/org/apache/commons/meiyo/classvisitor/AnnotatedClassVisitorTestCase.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: commons/sandbox/meiyo/trunk/src/test/java/org/apache/commons/meiyo/classvisitor/AnnotatedClassVisitorTestCase.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: commons/sandbox/meiyo/trunk/src/test/java/org/apache/commons/meiyo/classvisitor/AnnotatedClassVisitorTestCase.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain



Mime
View raw message