public class RequestHandlerSelectors
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static com.google.common.base.Predicate<RequestHandler> |
any()
Any RequestHandler satisfies this condition
|
static com.google.common.base.Predicate<RequestHandler> |
basePackage(java.lang.String basePackage)
Predicate that matches RequestHandler with given base package name for the class of the handler method.
|
static com.google.common.base.Predicate<RequestHandler> |
none()
No RequestHandler satisfies this condition
|
static com.google.common.base.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 com.google.common.base.Predicate<RequestHandler> |
withMethodAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
Predicate that matches RequestHandler with handlers methods annotated with given annotation
|
public static com.google.common.base.Predicate<RequestHandler> any()
public static com.google.common.base.Predicate<RequestHandler> none()
public static com.google.common.base.Predicate<RequestHandler> withMethodAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
annotation
- - annotation to checkpublic static com.google.common.base.Predicate<RequestHandler> withClassAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
annotation
- - annotation to checkpublic static com.google.common.base.Predicate<RequestHandler> basePackage(java.lang.String basePackage)
basePackage
- - base package of the classes