public static Predicate < RequestHandler > withMethodAnnotation ( final Class < ? extends Annotation > annotation ) { return input -> input . isAnnotatedWith ( annotation ) ; }
Predicate that matches RequestHandler with handlers methods annotated with given annotation