Class RequestHandlerSelectors


  • public class RequestHandlerSelectors
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.function.Predicate<RequestHandler> any()
      Any RequestHandler satisfies this condition
      static java.util.function.Predicate<RequestHandler> basePackage​(java.lang.String basePackage)
      Predicate that matches RequestHandler with given base package name for the class of the handler method.
      static java.util.function.Predicate<RequestHandler> none()
      No RequestHandler satisfies this condition
      static java.util.function.Predicate<RequestHandler> withClassAnnotation​(java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
      Predicate that matches RequestHandler with given annotation on the declaring class of the handler method
      static java.util.function.Predicate<RequestHandler> withMethodAnnotation​(java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
      Predicate that matches RequestHandler with handlers methods annotated with given annotation
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • any

        public static java.util.function.Predicate<RequestHandler> any()
        Any RequestHandler satisfies this condition
        Returns:
        predicate that is always true
      • none

        public static java.util.function.Predicate<RequestHandler> none()
        No RequestHandler satisfies this condition
        Returns:
        predicate that is always false
      • withMethodAnnotation

        public static java.util.function.Predicate<RequestHandler> withMethodAnnotation​(java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
        Predicate that matches RequestHandler with handlers methods annotated with given annotation
        Parameters:
        annotation - - annotation to check
        Returns:
        this
      • withClassAnnotation

        public static java.util.function.Predicate<RequestHandler> withClassAnnotation​(java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
        Predicate that matches RequestHandler with given annotation on the declaring class of the handler method
        Parameters:
        annotation - - annotation to check
        Returns:
        this
      • basePackage

        public static java.util.function.Predicate<RequestHandler> basePackage​(java.lang.String basePackage)
        Predicate that matches RequestHandler with given base package name for the class of the handler method. This predicate includes all request handlers matching the provided basePackage
        Parameters:
        basePackage - - base package of the classes
        Returns:
        this