public abstract class TypeFilterUtils extends Object
@ComponentScan
type filters.ComponentScan.Filter
,
TypeFilter
Constructor and Description |
---|
TypeFilterUtils() |
Modifier and Type | Method and Description |
---|---|
static List<org.springframework.core.type.filter.TypeFilter> |
createTypeFiltersFor(org.springframework.core.annotation.AnnotationAttributes filterAttributes,
org.springframework.core.env.Environment environment,
org.springframework.core.io.ResourceLoader resourceLoader,
org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
Create type filters from the supplied
AnnotationAttributes , such as those sourced from
ComponentScan.includeFilters() or ComponentScan.excludeFilters() . |
public static List<org.springframework.core.type.filter.TypeFilter> createTypeFiltersFor(org.springframework.core.annotation.AnnotationAttributes filterAttributes, org.springframework.core.env.Environment environment, org.springframework.core.io.ResourceLoader resourceLoader, org.springframework.beans.factory.support.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