Package org.apache.maven.di.impl
Class ReflectionUtils
java.lang.Object
org.apache.maven.di.impl.ReflectionUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Binding<T>
bindingFromConstructor
(Key<T> key, Constructor<T> constructor) static <T> Binding<T>
bindingFromMethod
(Method method) static <T> BindingInitializer<T>
fieldInjector
(Key<T> container, Field field) static <T> Binding<T>
generateConstructorBinding
(Key<T> key) static <T> Binding<T>
generateImplicitBinding
(Key<T> key) static <T> BindingInitializer<T>
generateInjectingInitializer
(Key<T> container) static <T extends AnnotatedElement & Member>
List<T>getAnnotatedElements
(Class<?> cls, Class<? extends Annotation> annotationType, Function<Class<?>, T[]> extractor, boolean allowStatic) static String
getDisplayName
(Type type) static Object
getOuterClassInstance
(Object innerClassInstance) static <T> Key<T>
keyOf
(Type container, Type type, AnnotatedElement annotatedElement) static <T> BindingInitializer<T>
methodInjector
(Key<T> container, Method method) static Object
qualifierOf
(AnnotatedElement annotatedElement) static Annotation
scopeOf
(AnnotatedElement annotatedElement) static Dependency<?>[]
toDependencies
(Type container, Executable executable)
-
Constructor Details
-
ReflectionUtils
public ReflectionUtils()
-
-
Method Details
-
getDisplayName
-
getOuterClassInstance
-
qualifierOf
-
scopeOf
-
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
-
generateConstructorBinding
-
generateInjectingInitializer
-
fieldInjector
-
methodInjector
-
toDependencies
-
bindingFromMethod
-
bindingFromConstructor
-