com.thoughtworks.xstream.annotations
Class AnnotationProvider
java.lang.Object
com.thoughtworks.xstream.annotations.AnnotationProvider
public class AnnotationProvider
- extends Object
An utility class to provide annotions from different sources
- Author:
- Guilherme Silveira
|
Method Summary |
|
getAnnotation(Field field,
Class<T> annotationClass)
Returns a field annotation based on an annotation type |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AnnotationProvider
public AnnotationProvider()
getAnnotation
public <T extends Annotation> T getAnnotation(Field field,
Class<T> annotationClass)
- Returns a field annotation based on an annotation type
- Parameters:
field - the annotation FieldannotationClass - the annotation Class
- Returns:
- The Annotation type
Copyright © 2004-2007 XStream. All Rights Reserved.