Top Description Constructors Methods
com.thoughtworks.xstream.annotations

public Class AnnotationProvider

extends Object
Class Inheritance
Annotations
@Deprecated
Imports
java.lang.annotation.Annotation, java.lang.reflect.Field

Deprecated

As of 1.3

An utility class to provide annotations from different sources
Author
Guilherme Silveira

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public <T extends Annotation> T

Returns:

The Annotation type
getAnnotation
(Field
the annotation Field
field
,
Class<T>
the annotation Class
annotationClass
)

Deprecated As of 1.3
Returns a field annotation based on an annotation type
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

AnnotationProviderback to summary
public AnnotationProvider()

Method Detail

getAnnotationback to summary
public <T extends Annotation> T getAnnotation(Field field, Class<T> annotationClass)

Deprecated

As of 1.3

Returns a field annotation based on an annotation type

Parameters
field:Field

the annotation Field

annotationClass:Class<T>

the annotation Class

Returns:T

The Annotation type

Annotations
@Deprecated