Class DependencyInjectionUtils

java.lang.Object
org.panda_lang.utilities.inject.DependencyInjectionUtils

public final class DependencyInjectionUtils extends Object
  • Constructor Details

    • DependencyInjectionUtils

      public DependencyInjectionUtils()
  • Method Details

    • testAnnotation

      public static <T> Class<T> testAnnotation(Class<T> annotation) throws DependencyInjectionException
      Check if annotation is available at runtime and it is annotated by @Injectable annotation
      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