Package org.panda_lang.utilities.inject
Class DependencyInjectionUtils
java.lang.Object
org.panda_lang.utilities.inject.DependencyInjectionUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Class<T>testAnnotation(Class<T> annotation) Check if annotation is available at runtime and is annotated byInjectableannotation
-
Method Details
-
testAnnotation
Check if annotation is available at runtime and is annotated byInjectableannotation- Type Parameters:
T- annotation type- Parameters:
annotation- the annotation to check- Returns:
- the tested annotation
- Throws:
DependencyInjectionException- when:- the given class is not an annotation
- annotation is not marked as @
Injectable - retention policy is not defined or its value is other than the
RetentionPolicy.RUNTIME
-