org.springframework.binding.support
Class ReflectionAnnotationTranslator

Show UML class diagram
java.lang.Object
  extended by org.springframework.binding.support.ReflectionAnnotationTranslator
All Implemented Interfaces:
AnnotationTranslator

public class ReflectionAnnotationTranslator
extends Object
implements AnnotationTranslator

Uses reflection to translate annotations into property level user metadata. This implementation will translate annotations in the following manner:

Since:
May 8, 2006 4:08:53 PM
Author:
andy

Field Summary
static String SINGLE_VALUE_METHOD_NAME
           
 
Constructor Summary
ReflectionAnnotationTranslator()
           
 
Method Summary
 void translate(Annotation annotation, Map<String,Object> result)
          Translates annotation into its constituent (or equivalent) key + value pairs and places the resulting pairs into the result map.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SINGLE_VALUE_METHOD_NAME

public static final String SINGLE_VALUE_METHOD_NAME
See Also:
Constant Field Values
Constructor Detail

ReflectionAnnotationTranslator

public ReflectionAnnotationTranslator()
Method Detail

translate

public void translate(Annotation annotation,
                      Map<String,Object> result)
Description copied from interface: AnnotationTranslator
Translates annotation into its constituent (or equivalent) key + value pairs and places the resulting pairs into the result map.

Specified by:
translate in interface AnnotationTranslator
Parameters:
annotation - the annotation to be translated
result - container to hold the result of this translation


Copyright © 2004-2009 The Spring Framework. All Rights Reserved.