Example usage for Java org.springframework.context.annotation ClassPathScanningCandidateComponentProvider fields, constructors, methods, implement or subclass
The text is from its open source code.
ClassPathScanningCandidateComponentProvider(boolean useDefaultFilters) Create a ClassPathScanningCandidateComponentProvider with a StandardEnvironment . | |
ClassPathScanningCandidateComponentProvider(boolean useDefaultFilters, Environment environment) Create a ClassPathScanningCandidateComponentProvider with the given Environment . |
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. |
void | clearCache() Clear the local metadata cache, if any, removing all cached class metadata. |
Set | findCandidateComponents(String basePackage) Scan the class path for candidate components. |
void | resetFilters(boolean useDefaultFilters) Reset the configured type filters. |
void | setEnvironment(Environment environment) Set the Environment to use when resolving placeholders and evaluating Conditional @Conditional -annotated component classes. |
void | setMetadataReaderFactory(MetadataReaderFactory metadataReaderFactory) Set the MetadataReaderFactory to use. |
void | setResourceLoader(@Nullable ResourceLoader resourceLoader) Set the ResourceLoader to use for resource locations. |