Class ReflectionUtils

java.lang.Object
org.apache.maven.di.impl.ReflectionUtils

public final class ReflectionUtils extends Object
  • Constructor Details

    • ReflectionUtils

      public ReflectionUtils()
  • Method Details

    • getDisplayName

      public static String getDisplayName(Type type)
    • getOuterClassInstance

      @Nullable public static Object getOuterClassInstance(Object innerClassInstance)
    • qualifierOf

      @Nullable public static Object qualifierOf(AnnotatedElement annotatedElement)
    • scopeOf

      @Nullable public static Annotation scopeOf(AnnotatedElement annotatedElement)
    • keyOf

      public static <T> Key<T> keyOf(@Nullable Type container, Type type, AnnotatedElement annotatedElement)
    • getAnnotatedElements

      public static <T extends AnnotatedElement & Member> List<T> getAnnotatedElements(Class<?> cls, Class<? extends Annotation> annotationType, Function<Class<?>,T[]> extractor, boolean allowStatic)
    • generateImplicitBinding

      @Nullable public static <T> Binding<T> generateImplicitBinding(Key<T> key)
    • generateConstructorBinding

      @Nullable public static <T> Binding<T> generateConstructorBinding(Key<T> key)
    • generateInjectingInitializer

      public static <T> BindingInitializer<T> generateInjectingInitializer(Key<T> container)
    • fieldInjector

      public static <T> BindingInitializer<T> fieldInjector(Key<T> container, Field field)
    • methodInjector

      public static <T> BindingInitializer<T> methodInjector(Key<T> container, Method method)
    • toDependencies

      public static Key<?>[] toDependencies(@Nullable Type container, Executable executable)
    • bindingFromMethod

      public static <T> Binding<T> bindingFromMethod(Method method)
    • bindingFromConstructor

      public static <T> Binding<T> bindingFromConstructor(Key<T> key, Constructor<T> constructor)