Class HandlerTypePredicate.Builder
java.lang.Object
org.springframework.web.method.HandlerTypePredicate.Builder
- Enclosing class:
HandlerTypePredicate
A
HandlerTypePredicate builder.- Since:
- 5.1
- Author:
- Rossen Stoyanchev
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionannotation(Class<? extends Annotation>... annotations) Match types that are annotated with one of the given annotations.assignableType(Class<?>... types) Match handlers that are assignable to a given type.basePackage(String... packages) Match handlers declared under a base package, for example, "org.example".basePackageClass(Class<?>... packageClasses) Type-safe alternative toHandlerTypePredicate.forBasePackage(String...)to specify a base package through a class.build()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
basePackage
Match handlers declared under a base package, for example, "org.example".- Parameters:
packages- one or more base package classes
-
basePackageClass
Type-safe alternative toHandlerTypePredicate.forBasePackage(String...)to specify a base package through a class.- Parameters:
packageClasses- one or more base package names
-
assignableType
Match handlers that are assignable to a given type.- Parameters:
types- one or more handler supertypes
-
annotation
Match types that are annotated with one of the given annotations.- Parameters:
annotations- one or more annotations to check for
-
build
-