public enum FilterType extends Enum<FilterType>
@ComponentScan.ComponentScan,
ComponentScan.includeFilters(),
ComponentScan.excludeFilters(),
TypeFilter| 枚举常量和说明 |
|---|
ANNOTATION
Filter candidates marked with a given annotation.
|
ASPECTJ
Filter candidates matching a given AspectJ type pattern expression.
|
ASSIGNABLE_TYPE
Filter candidates assignable to a given type.
|
CUSTOM
Filter candidates using a given custom
TypeFilter implementation. |
REGEX
Filter candidates matching a given regex pattern.
|
public static final FilterType ANNOTATION
AnnotationTypeFilterpublic static final FilterType ASSIGNABLE_TYPE
AssignableTypeFilterpublic static final FilterType ASPECTJ
AspectJTypeFilterpublic static final FilterType REGEX
RegexPatternTypeFilterpublic static final FilterType CUSTOM
TypeFilter implementation.public static FilterType[] values()
for (FilterType c : FilterType.values()) System.out.println(c);
public static FilterType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值