Package io.permazen.spring
Class PermazenClassScanner
java.lang.Object
org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider
io.permazen.spring.AnnotatedClassScanner
io.permazen.spring.PermazenClassScanner
- All Implemented Interfaces:
Aware
,ResourceLoaderAware
,EnvironmentCapable
Scans the classpath for types annotated as
@PermazenType
.-
Field Summary
Fields inherited from class org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider
IGNORE_CLASSFORMAT_PROPERTY_NAME, logger
-
Constructor Summary
ConstructorDescriptionConstructor.PermazenClassScanner
(ClassLoader loader) Constructor.PermazenClassScanner
(ClassLoader loader, boolean useDefaultFilters, Environment environment) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
isCandidateComponent
(AnnotatedBeanDefinition beanDefinition) Determine if the given bean definition is a possible search candidate.Methods inherited from class io.permazen.spring.AnnotatedClassScanner
initializeResourceLoader, registerDefaultFilters, scanForClasses
Methods inherited from class org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider
addExcludeFilter, addIncludeFilter, clearCache, findCandidateComponents, getEnvironment, getMetadataReaderFactory, getRegistry, getResourceLoader, isCandidateComponent, resetFilters, resolveBasePackage, setEnvironment, setMetadataReaderFactory, setResourceLoader, setResourcePattern
-
Constructor Details
-
PermazenClassScanner
public PermazenClassScanner()Constructor.The current thread's context class loader will be used. as the underlying
ClassLoader
. -
PermazenClassScanner
Constructor.- Parameters:
loader
- the underlyingClassLoader
to use
-
PermazenClassScanner
Constructor.- Parameters:
loader
- the underlyingClassLoader
to useuseDefaultFilters
- whether to register the default filters for@PermazenType
type annotationsenvironment
- environment to use
-
-
Method Details
-
isCandidateComponent
Determine if the given bean definition is a possible search candidate.This method is overridden in
PermazenClassScanner
to allow abstract classes and interfaces.- Overrides:
isCandidateComponent
in classClassPathScanningCandidateComponentProvider
-