Class MainApplicationHook
java.lang.Object
de.simonkerstan.ee.core.bootstrap.MainApplicationHook
- All Implemented Interfaces:
ClassHook
Hook to find the main application class.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClass<? extends Annotation>[]Get all annotations at the class level processed by this hook.Class<?>Get the main application class.voidprocessClass(Class<?> clazz, Class<? extends Annotation> annotation, Annotation annotationInstance) Process the given class with the given annotation.
-
Constructor Details
-
MainApplicationHook
public MainApplicationHook()
-
-
Method Details
-
getClassAnnotations
Description copied from interface:ClassHookGet all annotations at the class level processed by this hook.- Specified by:
getClassAnnotationsin interfaceClassHook- Returns:
- Class annotations processed by this hook
-
processClass
public void processClass(Class<?> clazz, Class<? extends Annotation> annotation, Annotation annotationInstance) Description copied from interface:ClassHookProcess the given class with the given annotation.- Specified by:
processClassin interfaceClassHook- Parameters:
clazz- Class to be processedannotation- Annotation to be processedannotationInstance- Annotation instance to be processed
-
getMainApplicationClass
Get the main application class. If there are multiple classes annotated withMainApplication, this method will also returnnull.- Returns:
- Main application class or
nullif not found
-