com.palominolabs.metrics.guice.annotation.MethodAnnotationResolver Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of metrics-guice Show documentation
Show all versions of metrics-guice Show documentation
com.palominolabs.metrics:metrics-guice
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);
}
}