Class ClassScanner

java.lang.Object
de.simonkerstan.ee.core.clazz.ClassScanner

public class ClassScanner extends Object
Class scanner to find all relevant classes.

FOR INTERNAL USE ONLY. THE API CAN CHANGE AT ANY TIME.

  • Constructor Details

    • ClassScanner

      public ClassScanner(String[] scanPackages, ClasspathItem classpathItem)
      Create a new class scanner.
      Parameters:
      scanPackages - Packages to be scanned for classes
  • Method Details

    • registerClassHook

      public void registerClassHook(ClassHook hook)
      Register a class hook to be called for all classes with the given annotations found.
      Parameters:
      hook - Class hook to be called
    • registerClassInterfacesHook

      public void registerClassInterfacesHook(ClassInterfacesHook hook)
      Register a class interfaces hook to be called for all classes.
      Parameters:
      hook - Class interfaces hook to be called
    • registerConstructorHook

      public void registerConstructorHook(ConstructorHook hook)
      Register a constructor hook to be called for all constructors with the given annotations found.
      Parameters:
      hook - Constructor hook to be called
    • registerMethodHook

      public void registerMethodHook(MethodHook hook)
      Register a method hook to be called for all methods with the given annotations found.
      Parameters:
      hook - Method hook to be called
    • scan

      public void scan()
      Scan over all classes and methods and call the registered hooks.