com.palominolabs.metrics.guice.annotation.MethodAnnotationResolver Maven / Gradle / Ivy
package com.palominolabs.metrics.guice.annotation;
import java.lang.annotation.Annotation;
import java.lang.reflect.Method;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
/**
* Looks for annotations on the method itself.
*/
public class MethodAnnotationResolver implements AnnotationResolver {
@Override
@Nullable
public T findAnnotation(@Nonnull final Class annotationClass,
@Nonnull final Method method) {
return method.getAnnotation(annotationClass);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy