public abstract class AbstractEntityScanRegistrar extends Object implements ImportBeanDefinitionRegistrar
ImportBeanDefinitionRegistrar used to collect the packages to scan for a
given component.
Expect to process an annotation type that defines a basePackage and
basePackageClasses attributes as well as a value alias of
basePackage.
The ImportBeanDefinitionRegistrar registers a single
AbstractEntityScanBeanPostProcessor implementation with the packages to use.
AbstractEntityScanBeanPostProcessor| Modifier | Constructor and Description |
|---|---|
protected |
AbstractEntityScanRegistrar(Class<? extends Annotation> annotationType,
String beanPostProcessorName,
Class<? extends AbstractEntityScanBeanPostProcessor> beanPostProcessorType)
Create an instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected Set<String> |
getPackagesToScan(AnnotationMetadata metadata) |
void |
registerBeanDefinitions(AnnotationMetadata importingClassMetadata,
BeanDefinitionRegistry registry) |
protected AbstractEntityScanRegistrar(Class<? extends Annotation> annotationType, String beanPostProcessorName, Class<? extends AbstractEntityScanBeanPostProcessor> beanPostProcessorType)
annotationType - the annotation to inspectbeanPostProcessorName - the name of the bean post processorbeanPostProcessorType - the type of the bean post processor implementationpublic void registerBeanDefinitions(AnnotationMetadata importingClassMetadata, BeanDefinitionRegistry registry)
registerBeanDefinitions in interface ImportBeanDefinitionRegistrarprotected Set<String> getPackagesToScan(AnnotationMetadata metadata)
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.