commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1135591 - /commons/sandbox/meiyo/trunk/src/main/java/org/apache/commons/meiyo/classvisitor/AnnotationHandlerBinderImpl.java
Date Tue, 14 Jun 2011 14:16:12 GMT
Author: simonetripodi
Date: Tue Jun 14 14:16:11 2011
New Revision: 1135591

URL: http://svn.apache.org/viewvc?rev=1135591&view=rev
Log:
filled missing javadoc

Modified:
    commons/sandbox/meiyo/trunk/src/main/java/org/apache/commons/meiyo/classvisitor/AnnotationHandlerBinderImpl.java

Modified: commons/sandbox/meiyo/trunk/src/main/java/org/apache/commons/meiyo/classvisitor/AnnotationHandlerBinderImpl.java
URL: http://svn.apache.org/viewvc/commons/sandbox/meiyo/trunk/src/main/java/org/apache/commons/meiyo/classvisitor/AnnotationHandlerBinderImpl.java?rev=1135591&r1=1135590&r2=1135591&view=diff
==============================================================================
--- commons/sandbox/meiyo/trunk/src/main/java/org/apache/commons/meiyo/classvisitor/AnnotationHandlerBinderImpl.java
(original)
+++ commons/sandbox/meiyo/trunk/src/main/java/org/apache/commons/meiyo/classvisitor/AnnotationHandlerBinderImpl.java
Tue Jun 14 14:16:11 2011
@@ -27,33 +27,54 @@ import java.lang.reflect.Method;
 import java.util.HashMap;
 import java.util.Map;
 
+/**
+ * Internal {@link AnnotationHandlerBinder} implementation.
+ */
 final class AnnotationHandlerBinderImpl
     implements AnnotationHandlerBinder
 {
 
+    /**
+     * The registry used to store {@code (AnnotatedElement/Annotation, AnnotationHandler)}
+     */
     private final Map<Key, AnnotationHandler<AnnotatedElement, Annotation>> registry
=
         new HashMap<Key, AnnotationHandler<AnnotatedElement, Annotation>>();
 
+    /**
+     * {@inheritDoc}
+     */
     public AnnotatedHandlerBuilder<Class> handleType()
     {
         return this.handleElement( Class.class );
     }
 
+    /**
+     * {@inheritDoc}
+     */
     public AnnotatedHandlerBuilder<Constructor> handleConstructor()
     {
         return this.handleElement( Constructor.class );
     }
 
+    /**
+     * {@inheritDoc}
+     */
     public AnnotatedHandlerBuilder<Field> handleField()
     {
         return this.handleElement( Field.class );
     }
 
+    /**
+     * {@inheritDoc}
+     */
     public AnnotatedHandlerBuilder<Method> handleMethod()
     {
         return this.handleElement( Method.class );
     }
 
+    /**
+     * {@inheritDoc}
+     */
     private <E extends AnnotatedElement> AnnotatedHandlerBuilder<E> handleElement(
final Class<E> annotatedElementType )
     {
         return new AnnotatedHandlerBuilder<E>()
@@ -83,6 +104,14 @@ final class AnnotationHandlerBinderImpl
         };
     }
 
+    /**
+     * Retrieves an {@link AnnotationHandler} given the {@link AnnotatedElement} and the
{@link Annotation}, if any.
+     *
+     * @param annotatedElementType the {@link AnnotatedElement} type
+     * @param annotationType the {@link Annotation} type
+     * @return the {@link AnnotationHandler} given the {@link AnnotatedElement} and the {@link
Annotation} if any,
+     *         null otherwise.
+     */
     public AnnotationHandler<AnnotatedElement, Annotation> getHandler( Class<? extends
AnnotatedElement> annotatedElementType,
                                                                        Class<? extends
Annotation> annotationType )
     {



Mime
View raw message