org.onetwo.dbm.utils.SpringAnnotationFinder Maven / Gradle / Ivy
The newest version!
package org.onetwo.dbm.utils;
import java.lang.annotation.Annotation;
import java.lang.reflect.AnnotatedElement;
import org.onetwo.common.annotation.AnnotationInfo.AnnotationFinder;
import org.onetwo.common.spring.utils.SpringMergedAnnotationFinder;
/**
* @author wayshall
*
*/
public class SpringAnnotationFinder implements AnnotationFinder {
final public static SpringAnnotationFinder INSTANCE = new SpringAnnotationFinder();
@Override
public A getAnnotation(AnnotatedElement annotatedElement, Class annotationType) {
// return AnnotationUtils.findAnnotation(annotatedElement, annotationType);
return SpringMergedAnnotationFinder.INSTANCE.getAnnotation(annotatedElement, annotationType);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy