Home | History | Annotate | Download | only in finder

Lines Matching refs:method

19 import java.lang.reflect.Method;
27 private final Method method;
30 public DynamicFinder(Method method) {
31 this.method = method;
32 this.finder = method.getAnnotation(Finder.class);
36 * Returns some metadata if the method is annotated {@code @Finder} or null.
38 * @param method a method you want to test as a dynamic finder
40 public static DynamicFinder from(Method method) {
41 return method.isAnnotationPresent(Finder.class) ? new DynamicFinder(method) : null;