@Component(value="core_JmixModulesClasspathScanner") public class JmixModulesClasspathScanner extends AbstractClasspathScanner
ClasspathScanCandidateDetector
beans registered in the Spring context.
Detected class names are stored and available through the getClassNames(Class)
method. This method
accepts a ClasspathScanCandidateDetector
type and returns names of classes selected by this detector.
Modifier and Type | Field and Description |
---|---|
protected org.springframework.context.ApplicationContext |
applicationContext |
protected java.util.List<java.lang.String> |
basePackages |
protected java.util.List<ClasspathScanCandidateDetector> |
candidateDetectors |
protected java.util.Map<java.lang.Class<? extends ClasspathScanCandidateDetector>,java.util.Set<java.lang.String>> |
detectedClasses |
protected org.springframework.core.type.classreading.MetadataReaderFactory |
metadataReaderFactory |
DEFAULT_CLASS_RESOURCE_PATTERN
Constructor and Description |
---|
JmixModulesClasspathScanner() |
Modifier and Type | Method and Description |
---|---|
java.util.Set<java.lang.String> |
getClassNames(java.lang.Class<? extends ClasspathScanCandidateDetector> detectorType)
Returns the set of class names selected by a detector of the given type.
|
protected org.springframework.core.env.Environment |
getEnvironment() |
protected org.springframework.core.type.classreading.MetadataReaderFactory |
getMetadataReaderFactory() |
protected org.springframework.core.io.ResourceLoader |
getResourceLoader() |
protected void |
init() |
void |
refreshClassNames(ClasspathScanCandidateDetector detector)
Refreshes the set of class names corresponding to a detector passed.
|
void |
setJmixComponents(JmixModules jmixModules) |
void |
setMetadataReaderFactory(AnnotationScanMetadataReaderFactory metadataReaderFactory) |
resolveBasePackage, scanPackage
protected org.springframework.core.type.classreading.MetadataReaderFactory metadataReaderFactory
protected java.util.List<java.lang.String> basePackages
protected java.util.Map<java.lang.Class<? extends ClasspathScanCandidateDetector>,java.util.Set<java.lang.String>> detectedClasses
@Autowired protected org.springframework.context.ApplicationContext applicationContext
@Autowired protected java.util.List<ClasspathScanCandidateDetector> candidateDetectors
@Autowired public void setMetadataReaderFactory(AnnotationScanMetadataReaderFactory metadataReaderFactory)
@Autowired public void setJmixComponents(JmixModules jmixModules)
@PostConstruct protected void init()
public java.util.Set<java.lang.String> getClassNames(java.lang.Class<? extends ClasspathScanCandidateDetector> detectorType)
public void refreshClassNames(ClasspathScanCandidateDetector detector)
protected org.springframework.core.type.classreading.MetadataReaderFactory getMetadataReaderFactory()
getMetadataReaderFactory
in class AbstractClasspathScanner
protected org.springframework.core.io.ResourceLoader getResourceLoader()
getResourceLoader
in class AbstractClasspathScanner
protected org.springframework.core.env.Environment getEnvironment()
getEnvironment
in class AbstractClasspathScanner