![JAR search and dependency download from the Maven repository](/logo.png)
org.hibernate.reflection.java.JavaAnnotationReader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-annotations
Show all versions of hibernate-annotations
Annotations metadata for Hibernate
package org.hibernate.reflection.java;
import java.lang.annotation.Annotation;
import java.lang.reflect.AnnotatedElement;
/**
* Reads standard Java annotations.
*
* @author Paolo Perrotta
* @author Davide Marchignoli
*/
class JavaAnnotationReader {
protected final AnnotatedElement element;
public JavaAnnotationReader(AnnotatedElement el) {
this.element = el;
}
public T getAnnotation(Class annotationType) {
return element.getAnnotation( annotationType );
}
public boolean isAnnotationPresent(Class annotationType) {
return element.isAnnotationPresent( annotationType );
}
public Annotation[] getAnnotations() {
return element.getAnnotations();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy