Class AndroidScanner

    • Method Detail

      • scanForResources

        public List<io.avaje.classpath.scanner.Resource> scanForResources​(Location location,
                                                                          Predicate<String> predicate)
        Description copied from interface: ResourceAndClassScanner
        Scans the classpath for resources under the specified location, starting with the specified prefix and ending with the specified suffix.
        Specified by:
        scanForResources in interface ResourceAndClassScanner
        Parameters:
        location - The location in the classpath to start searching. Subdirectories are also searched.
        predicate - The predicate used to match the resource names.
        Returns:
        The resources that were found.
      • scanForClasses

        public List<Class<?>> scanForClasses​(Location location,
                                             Predicate<Class<?>> predicate)
        Description copied from interface: ResourceAndClassScanner
        Scans the classpath for concrete classes under the specified package implementing this interface. Non-instantiable abstract classes are filtered out.
        Specified by:
        scanForClasses in interface ResourceAndClassScanner
        Parameters:
        location - The location (package) in the classpath to start scanning. Subpackages are also scanned.
        predicate - The predicate used to match against scanned classes.
        Returns:
        The non-abstract classes that were found.