Class Scanner

  • Direct Known Subclasses:
    ReactiveScanner

    public class Scanner
    extends Object
    This class scann all components
    Version:
    1.0.0
    Author:
    Ramon Rangel Osorio <ramon.rangel@protonmail.com>
    • Field Detail

      • classes

        protected final List<Class<?>> classes
      • clazz

        protected final Class<? extends javafx.application.Application> clazz
    • Constructor Detail

      • Scanner

        public Scanner​(Class<? extends javafx.application.Application> application)
    • Method Detail

      • scan

        public void scan()
        Scans the classes and registers them in the container based on their annotations.
      • getClasses

        public List<Class<?>> getClasses()
        Retrieves the list of classes.
        Returns:
        The list of classes.
      • scanClasses

        protected void scanClasses​(URL url,
                                   String packageName)
        Scans the classes in the specified URL and package name.
        Parameters:
        url - the URL to scan
        packageName - the package name to scan
      • scanClassesInJar

        protected void scanClassesInJar​(URL url,
                                        String packageName)
        Scans the classes in a Jar file for a given package name.
        Parameters:
        url - the URL of the Jar file to scan
        packageName - the package name to scan for