Class AbstractResourcesInjector<A extends java.lang.annotation.Annotation>

    • Field Detail

      • INJECTORS

        public static final java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,​java.lang.Class<? extends AbstractResourcesInjector<? extends java.lang.annotation.Annotation>>> INJECTORS
      • testInstance

        protected final java.lang.Object testInstance
      • testClass

        protected final java.lang.Class<?> testClass
      • annotationType

        protected final java.lang.Class<A extends java.lang.annotation.Annotation> annotationType
    • Constructor Detail

      • AbstractResourcesInjector

        protected AbstractResourcesInjector​(InjectionContext injectionContext,
                                            @Nullable
                                            @Nullable java.lang.Object testInstance,
                                            java.lang.Class<?> testClass,
                                            java.lang.Class<A> annotationType)
    • Method Detail

      • injectorFor

        public static <T extends java.lang.annotation.Annotation> AbstractResourcesInjector<T> injectorFor​(java.lang.Class<T> annotationType,
                                                                                                           @Nullable
                                                                                                           @Nullable java.lang.Object testInstance,
                                                                                                           java.lang.Class<?> testClass,
                                                                                                           InjectionContext injectionContext)
      • injectField

        public void injectField​(java.lang.reflect.Field field)
      • assertValidField

        protected void assertValidField​(java.lang.reflect.Field field)
      • assertValidParameter

        public void assertValidParameter​(java.lang.reflect.Parameter parameter)
      • valueToInject

        public abstract java.lang.Object valueToInject​(java.lang.reflect.Type valueType,
                                                       A resourceAnnotation)
      • allInjectors

        public static java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,​java.lang.Class<? extends AbstractResourcesInjector<? extends java.lang.annotation.Annotation>>> allInjectors()