Class JmixModulesClasspathScanner

java.lang.Object
io.jmix.core.impl.scanning.AbstractClasspathScanner
io.jmix.core.impl.scanning.JmixModulesClasspathScanner

@Component("core_JmixModulesClasspathScanner") public class JmixModulesClasspathScanner extends AbstractClasspathScanner
Scans classpath of all Jmix modules used in the application and detects classes according to 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.

  • Field Details

    • metadataReaderFactory

      protected org.springframework.core.type.classreading.MetadataReaderFactory metadataReaderFactory
    • basePackages

      protected List<String> basePackages
    • detectedClasses

      protected Map<Class<? extends ClasspathScanCandidateDetector>,Set<String>> detectedClasses
    • applicationContext

      @Autowired protected org.springframework.context.ApplicationContext applicationContext
    • candidateDetectors

      @Autowired protected List<ClasspathScanCandidateDetector> candidateDetectors
  • Constructor Details

    • JmixModulesClasspathScanner

      public JmixModulesClasspathScanner()
  • Method Details