Example usage for Java org.springframework.context.annotation ClassPathBeanDefinitionScanner fields, constructors, methods, implement or subclass
The text is from its open source code.
ClassPathBeanDefinitionScanner(BeanDefinitionRegistry registry) Create a new ClassPathBeanDefinitionScanner for the given bean factory. | |
ClassPathBeanDefinitionScanner(BeanDefinitionRegistry registry, boolean useDefaultFilters) Create a new ClassPathBeanDefinitionScanner for the given bean factory. |
void | addExcludeFilter(TypeFilter excludeFilter) Add an exclude type filter to the front of the exclusion list. |
void | addIncludeFilter(TypeFilter includeFilter) Add an include type filter to the end of the inclusion list. |
Set | findCandidateComponents(String basePackage) Scan the class path for candidate components. |
ResourceLoader | getResourceLoader() Return the ResourceLoader that this component provider uses. |
void | resetFilters(boolean useDefaultFilters) Reset the configured type filters. |
int | scan(String... basePackages) Perform a scan within the specified base packages. |
void | setAutowireCandidatePatterns(@Nullable String... autowireCandidatePatterns) Set the name-matching patterns for determining autowire candidates. |
void | setBeanDefinitionDefaults(@Nullable BeanDefinitionDefaults beanDefinitionDefaults) Set the defaults to use for detected beans. |
void | setBeanNameGenerator(@Nullable BeanNameGenerator beanNameGenerator) Set the BeanNameGenerator to use for detected bean classes. |
void | setEnvironment(Environment environment) Set the Environment to use when resolving placeholders and evaluating Conditional @Conditional -annotated component classes. |
void | setResourceLoader(@Nullable ResourceLoader resourceLoader) Set the ResourceLoader to use for resource locations. |
void | setScopeMetadataResolver(@Nullable ScopeMetadataResolver scopeMetadataResolver) Set the ScopeMetadataResolver to use for detected bean classes. |