public final class HandlerTypePredicate extends ObjectSE implements PredicateSE<ClassSE<?>>
Predicate
:Predicate
SE の構成可能性メソッドを使用できます。
Predicate<Class<?>> predicate = HandlerTypePredicate.forAnnotation(RestController.class) .and(HandlerTypePredicate.forBasePackage("org.example"));
修飾子と型 | クラスと説明 |
---|---|
static class | HandlerTypePredicate.Builder HandlerTypePredicate ビルダー。 |
修飾子と型 | メソッドと説明 |
---|---|
static HandlerTypePredicate.Builder | builder() HandlerTypePredicate のビルダーを返します。 |
static HandlerTypePredicate | forAnnotation(ClassSE<? extends AnnotationSE>... annotations) 特定のアノテーションが付けられた一致ハンドラー。 |
static HandlerTypePredicate | forAnyHandlerType() ハンドラーに適用される Predicate 。 |
static HandlerTypePredicate | forAssignableType(ClassSE<?>... types) 特定の型に割り当て可能なハンドラーに一致します。 |
static HandlerTypePredicate | forBasePackage(StringSE... packages) 基本パッケージで宣言された一致ハンドラー。 |
static HandlerTypePredicate | forBasePackageClass(ClassSE<?>... packageClasses) クラスを介して基本パッケージを指定する forBasePackage(String...) の型安全な代替。 |
boolean | test(ClassSE<?> controllerType) |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
andSE, isEqualSE, negateSE, orSE
public boolean test(@Nullable ClassSE<?> controllerType)
PredicateSE<ClassSE<?>>
の testSE
public static HandlerTypePredicate forAnyHandlerType()
Predicate
。public static HandlerTypePredicate forBasePackage(StringSE... packages)
packages
- 1 つ以上の基本パッケージ名 public static HandlerTypePredicate forBasePackageClass(ClassSE<?>... packageClasses)
forBasePackage(String...)
の型安全な代替。packageClasses
- 1 つ以上の基本パッケージクラス public static HandlerTypePredicate forAssignableType(ClassSE<?>... types)
types
- 1 つ以上のハンドラーのスーパー型 @SafeVarargsSE public static HandlerTypePredicate forAnnotation(ClassSE<? extends AnnotationSE>... annotations)
annotations
- チェックする 1 つ以上のアノテーション public static HandlerTypePredicate.Builder builder()
HandlerTypePredicate
のビルダーを返します。