|Modifier and Type||Optional Element and Description|
The String pattern (or patterns) to use for the filter, as an alternative to specifying a Class
The type of filter to use.
The class or classes to use as the filter.
public abstract Class<?> value
FilterType.ANNOTATION, the class will be the annotation itself. In the case of
FilterType.ASSIGNABLE_TYPE, the class will be the type that detected components should be assignable to. And in the case of
FilterType.CUSTOM, the class will be an implementation of
When multiple classes are specified, OR logic is applied, e.g. "include
types annotated with
Specifying zero classes is permitted but will have no effect on component scanning.
public abstract String pattern
value(). In the case of
FilterType.ASPECTJ, this is an AspectJ type pattern expression; in case of
FilterType.REGEX, a regex pattern for the fully-qualified class names to match.