public class RequestHandlerSelectors extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static com.google.common.base.Predicate<RequestHandler> |
any()
Any RequestHandler satisfies this condition
|
static com.google.common.base.Predicate<RequestHandler> |
basePackage(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(Class<? extends 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(Class<? extends 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(Class<? extends Annotation> annotation)
annotation - - annotation to checkpublic static com.google.common.base.Predicate<RequestHandler> withClassAnnotation(Class<? extends Annotation> annotation)
annotation - - annotation to checkpublic static com.google.common.base.Predicate<RequestHandler> basePackage(String basePackage)
basePackage - - base package of the classesCopyright © 2023. All rights reserved.