public abstract class TypeFilterUtils extends Object
@ComponentScan
type filters.ComponentScan.Filter
,
TypeFilter
Constructor and Description |
---|
TypeFilterUtils() |
Modifier and Type | Method and Description |
---|---|
static List<TypeFilter> |
createTypeFiltersFor(AnnotationAttributes filterAttributes,
Environment environment,
ResourceLoader resourceLoader,
BeanDefinitionRegistry registry)
Create type filters from the supplied
AnnotationAttributes , such as those sourced from
ComponentScan.includeFilters() or ComponentScan.excludeFilters() . |
public static List<TypeFilter> createTypeFiltersFor(AnnotationAttributes filterAttributes, Environment environment, ResourceLoader resourceLoader, BeanDefinitionRegistry registry)
AnnotationAttributes
, such as those sourced from
ComponentScan.includeFilters()
or ComponentScan.excludeFilters()
.
Each TypeFilter
will be instantiated using an appropriate
constructor, with BeanClassLoaderAware
, BeanFactoryAware
,
EnvironmentAware
, and ResourceLoaderAware
contracts
invoked if they are implemented by the type filter.
filterAttributes
- AnnotationAttributes
for a
@Filter
declarationenvironment
- the Environment
to make available to filtersresourceLoader
- the ResourceLoader
to make available to filtersregistry
- the BeanDefinitionRegistry
to make available to filters
as a BeanFactory
if applicableTypeFilter
,
AnnotationTypeFilter
,
AssignableTypeFilter
,
AspectJTypeFilter
,
RegexPatternTypeFilter
,
BeanClassLoaderAware
,
BeanFactoryAware
,
EnvironmentAware
,
ResourceLoaderAware