Package de.simonkerstan.ee.core.clazz
Class ClassScanner
java.lang.Object
de.simonkerstan.ee.core.clazz.ClassScanner
Class scanner to find all relevant classes.
FOR INTERNAL USE ONLY. THE API CAN CHANGE AT ANY TIME.
-
Constructor Summary
ConstructorsConstructorDescriptionClassScanner(String[] scanPackages, ClasspathItem classpathItem) Create a new class scanner. -
Method Summary
Modifier and TypeMethodDescriptionvoidregisterClassHook(ClassHook hook) Register a class hook to be called for all classes with the given annotations found.voidRegister a class interfaces hook to be called for all classes.voidRegister a constructor hook to be called for all constructors with the given annotations found.voidregisterMethodHook(MethodHook hook) Register a method hook to be called for all methods with the given annotations found.voidscan()Scan over all classes and methods and call the registered hooks.
-
Constructor Details
-
ClassScanner
Create a new class scanner.- Parameters:
scanPackages- Packages to be scanned for classes
-
-
Method Details
-
registerClassHook
Register a class hook to be called for all classes with the given annotations found.- Parameters:
hook- Class hook to be called
-
registerClassInterfacesHook
Register a class interfaces hook to be called for all classes.- Parameters:
hook- Class interfaces hook to be called
-
registerConstructorHook
Register a constructor hook to be called for all constructors with the given annotations found.- Parameters:
hook- Constructor hook to be called
-
registerMethodHook
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.
-