public static class HandlerTypePredicate.Builder extends Object
HandlerTypePredicate
builder.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
HandlerTypePredicate.Builder |
annotation(Class<? extends Annotation>... annotations)
Match types that are annotated with one of the given annotations.
|
HandlerTypePredicate.Builder |
assignableType(Class<?>... types)
Match handlers that are assignable to a given type.
|
HandlerTypePredicate.Builder |
basePackage(String... packages)
Match handlers declared under a base package, e.g.
|
HandlerTypePredicate.Builder |
basePackageClass(Class<?>... packageClasses)
Type-safe alternative to
HandlerTypePredicate.forBasePackage(String...) to specify a
base package through a class. |
HandlerTypePredicate |
build() |
public HandlerTypePredicate.Builder basePackage(String... packages)
packages
- one or more base package classespublic HandlerTypePredicate.Builder basePackageClass(Class<?>... packageClasses)
HandlerTypePredicate.forBasePackage(String...)
to specify a
base package through a class.packageClasses
- one or more base package namespublic HandlerTypePredicate.Builder assignableType(Class<?>... types)
types
- one or more handler super typespublic final HandlerTypePredicate.Builder annotation(Class<? extends Annotation>... annotations)
annotations
- one or more annotations to check forpublic HandlerTypePredicate build()