All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.thoughtworks.xstream.annotations.AnnotationProvider Maven / Gradle / Ivy

There is a newer version: 1.4.21
Show newest version
/*
 * Copyright (C) 2006, 2007, 2008, 2009 XStream Committers.
 * All rights reserved.
 *
 * The software in this package is published under the terms of the BSD
 * style license a copy of which has been included with this distribution in
 * the LICENSE.txt file.
 * 
 * Created on 02. March 2006 by Mauro Talevi
 */
package com.thoughtworks.xstream.annotations;

import java.lang.annotation.Annotation;
import java.lang.reflect.Field;


/**
 * An utility class to provide annotations from different sources
 * 
 * @author Guilherme Silveira
 * @deprecated As of 1.3
 */
@Deprecated
public class AnnotationProvider {

    /**
     * Returns a field annotation based on an annotation type
     * 
     * @param field the annotation Field
     * @param annotationClass the annotation Class
     * @return The Annotation type
     * @deprecated As of 1.3
     */
    @Deprecated
    public  T getAnnotation(Field field, Class annotationClass) {
        return field.getAnnotation(annotationClass);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy