类 HandlerTypePredicate.Builder
- java.lang.Object
- org.springframework.web.method.HandlerTypePredicate.Builder
public static class HandlerTypePredicate.Builder extends Object
AHandlerTypePredicate
builder.
构造器概要
构造器 构造器 说明 Builder()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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 toHandlerTypePredicate.forBasePackage(String...)
to specify a base package through a class.HandlerTypePredicate
build()
构造器详细资料
Builder
public Builder()
方法详细资料
basePackage
public HandlerTypePredicate.Builder basePackage(String... packages)
Match handlers declared under a base package, e.g. "org.example".- 参数:
packages
- one or more base package classes
basePackageClass
public HandlerTypePredicate.Builder basePackageClass(Class<?>... packageClasses)
Type-safe alternative toHandlerTypePredicate.forBasePackage(String...)
to specify a base package through a class.- 参数:
packageClasses
- one or more base package names
assignableType
public HandlerTypePredicate.Builder assignableType(Class<?>... types)
Match handlers that are assignable to a given type.- 参数:
types
- one or more handler super types
annotation
public final HandlerTypePredicate.Builder annotation(Class<? extends Annotation>... annotations)
Match types that are annotated with one of the given annotations.- 参数:
annotations
- one or more annotations to check for
build
public HandlerTypePredicate build()