接口的使用
org.springframework.core.type.filter.TypeFilter
使用TypeFilter的程序包 程序包 说明 org.springframework.context.annotation Annotation support for the Application Context, including JSR-250 "common" annotations, component-scanning, and Java-based metadata for creating Spring-managed objects.org.springframework.core.type.filter Core support package for type filtering (e.g. for classpath scanning).org.springframework.orm.hibernate5 Package providing integration of Hibernate 5.x with Spring concepts.org.springframework.context.annotation中TypeFilter的使用
返回TypeFilter的org.springframework.context.annotation中的方法 修饰符和类型 方法 说明 protected TypeFilter
ComponentScanBeanDefinitionParser. createTypeFilter(Element element, ClassLoader classLoader, ParserContext parserContext)
参数类型为TypeFilter的org.springframework.context.annotation中的方法 修饰符和类型 方法 说明 void
ClassPathScanningCandidateComponentProvider. addExcludeFilter(TypeFilter excludeFilter)
Add an exclude type filter to the front of the exclusion list.void
ClassPathScanningCandidateComponentProvider. addIncludeFilter(TypeFilter includeFilter)
Add an include type filter to the end of the inclusion list.org.springframework.core.type.filter中TypeFilter的使用
实现TypeFilter的org.springframework.core.type.filter中的类 修饰符和类型 类 说明 class
AbstractClassTestingTypeFilter
Type filter that exposes aClassMetadata
object to subclasses, for class testing purposes.class
AbstractTypeHierarchyTraversingFilter
Type filter that is aware of traversing over hierarchy.class
AnnotationTypeFilter
A simpleTypeFilter
which matches classes with a given annotation, checking inherited annotations as well.class
AspectJTypeFilter
Type filter that uses AspectJ type pattern for matching.class
AssignableTypeFilter
A simple filter which matches classes that are assignable to a given type.class
RegexPatternTypeFilter
A simple filter for matching a fully-qualified class name with a regexPattern
.org.springframework.orm.hibernate5中TypeFilter的使用
参数类型为TypeFilter的org.springframework.orm.hibernate5中的方法 修饰符和类型 方法 说明 void
LocalSessionFactoryBean. setEntityTypeFilters(TypeFilter... entityTypeFilters)
Specify custom type filters for Spring-based scanning for entity classes.LocalSessionFactoryBuilder
LocalSessionFactoryBuilder. setEntityTypeFilters(TypeFilter... entityTypeFilters)
Specify custom type filters for Spring-based scanning for entity classes.