InjectionPointImpl(InjectManager manager, Bean<T> bean, AnnotatedField<T> field) { this(manager, bean, field, field.getJavaMember(), field.getBaseType()); }
InjectionPointImpl(Bean<?> ownerBean, Collection<Annotation> qualifiers, AnnotatedField<?> annotatedField) { this(ownerBean, annotatedField.getBaseType(), qualifiers, annotatedField, annotatedField.getJavaMember(), annotatedField.isAnnotationPresent(Delegate.class), annotatedField.getJavaMember() == null? false : Modifier.isTransient(annotatedField.getJavaMember().getModifiers())); }
@Override protected T getValue(Object receiver, CreationalContext<T> creationalContext) { field.getJavaMember().setAccessible(true); return getFieldValue(field.getJavaMember(), receiver, Reflections.<T>getRawType(field.getBaseType())); }
@Override protected T getValue(Object receiver, CreationalContext<T> creationalContext) { return getFieldValue(field.getJavaMember(), receiver, Reflections.<T>getRawType(field.getBaseType())); }
public AnnotatedFieldImpl(AnnotatedField<? super T> field, Set<Annotation> annotations, AnnotatedType<T> declaringType) { this(field.getBaseType(), field.getTypeClosure(), annotations, declaringType, field.getJavaMember(), field.isStatic()); }
public AnnotatedFieldImpl(AnnotatedField<? super T> field, Set<Annotation> annotations, AnnotatedType<T> declaringType) { this(field.getBaseType(), field.getTypeClosure(), annotations, declaringType, field.getJavaMember(), field.isStatic()); }
public AnnotatedFieldImpl(AnnotatedField<? super T> field, AnnotatedType<T> declaringType) { this(field.getBaseType(), field.getTypeClosure(), field.getAnnotations(), declaringType, field.getJavaMember(), field.isStatic()); }
public AnnotatedFieldImpl(AnnotatedField<? super T> field, AnnotatedType<T> declaringType) { this(field.getBaseType(), field.getTypeClosure(), field.getAnnotations(), declaringType, field.getJavaMember(), field.isStatic()); }
protected static <T, X> FieldInjectionPointAttributes<T, X> fire(FieldInjectionPointAttributes<T, X> attributes, Class<?> declaringComponentClass, BeanManagerImpl manager) { ProcessInjectionPointImpl<T, X> event = new ProcessInjectionPointImpl<T, X>(attributes, declaringComponentClass, manager, attributes.getAnnotated().getBaseType()) { }; event.fire(); if (!event.isDirty()) { return attributes; } else { return ForwardingFieldInjectionPointAttributes.of(event.getInjectionPointInternal()); } }
protected static <T, X> FieldInjectionPointAttributes<T, X> fire(FieldInjectionPointAttributes<T, X> attributes, Class<?> declaringComponentClass, BeanManagerImpl manager) { ProcessInjectionPointImpl<T, X> event = new ProcessInjectionPointImpl<T, X>(attributes, declaringComponentClass, manager, attributes.getAnnotated().getBaseType()) { }; event.fire(); if (!event.isDirty()) { return attributes; } else { return ForwardingFieldInjectionPointAttributes.of(event.getInjectionPointInternal()); } }
protected static <T, X> FieldInjectionPointAttributes<T, X> fire(FieldInjectionPointAttributes<T, X> attributes, Class<?> declaringComponentClass, BeanManagerImpl manager) { ProcessInjectionPointImpl<T, X> event = new ProcessInjectionPointImpl<T, X>(attributes, declaringComponentClass, manager, attributes.getAnnotated().getBaseType()) { }; event.fire(); if (!event.isDirty()) { return attributes; } else { return ForwardingFieldInjectionPointAttributes.of(event.getInjectionPointInternal()); } }
protected static <T, X> FieldInjectionPointAttributes<T, X> fire(FieldInjectionPointAttributes<T, X> attributes, Class<?> declaringComponentClass, BeanManagerImpl manager) { ProcessInjectionPointImpl<T, X> event = new ProcessInjectionPointImpl<T, X>(attributes, declaringComponentClass, manager, attributes.getAnnotated().getBaseType()) { }; event.fire(); if (!event.isDirty()) { return attributes; } else { return ForwardingFieldInjectionPointAttributes.of(event.getInjectionPointInternal()); } }
protected static <T, X> FieldInjectionPointAttributes<T, X> fire(FieldInjectionPointAttributes<T, X> attributes, Class<?> declaringComponentClass, BeanManagerImpl manager) { ProcessInjectionPointImpl<T, X> event = new ProcessInjectionPointImpl<T, X>(attributes, declaringComponentClass, manager, attributes.getAnnotated().getBaseType()) { }; event.fire(); if (!event.isDirty()) { return attributes; } else { return ForwardingFieldInjectionPointAttributes.of(event.getInjectionPointInternal()); } }
@Override public String toString() { return "Producer Field [" + Formats.formatType(getAnnotated().getBaseType()) + "] with qualifiers [" + Formats.formatAnnotations(getQualifiers()) + "] declared as [" + getAnnotated() + "]"; }
@Override public String toString() { return "Producer Field [" + Formats.formatType(getAnnotated().getBaseType()) + "] with qualifiers [" + Formats.formatAnnotations(getQualifiers()) + "] declared as [" + getAnnotated() + "]"; }
public static <X, Y extends X> AnnotatedField<X> of(AnnotatedField<X> originalField, UnbackedAnnotatedType<Y> declaringType, SharedObjectCache cache) { UnbackedAnnotatedType<X> downcastDeclaringType = cast(declaringType); return new UnbackedAnnotatedField<X>(originalField.getBaseType(), originalField.getTypeClosure(), cache.getSharedSet(originalField.getAnnotations()), originalField.getJavaMember(), downcastDeclaringType); }
public static <X, Y extends X> AnnotatedField<X> of(AnnotatedField<X> originalField, UnbackedAnnotatedType<Y> declaringType, SharedObjectCache cache) { UnbackedAnnotatedType<X> downcastDeclaringType = cast(declaringType); return new UnbackedAnnotatedField<X>(originalField.getBaseType(), originalField.getTypeClosure(), cache.getSharedSet(originalField.getAnnotations()), originalField.getJavaMember(), downcastDeclaringType); }
public static <X, Y extends X> AnnotatedField<X> of(AnnotatedField<X> originalField, UnbackedAnnotatedType<Y> declaringType, SharedObjectCache cache) { UnbackedAnnotatedType<X> downcastDeclaringType = cast(declaringType); return new UnbackedAnnotatedField<X>(originalField.getBaseType(), originalField.getTypeClosure(), cache.getSharedSet(originalField.getAnnotations()), originalField.getJavaMember(), downcastDeclaringType); }
public static <X, Y extends X> AnnotatedField<X> of(AnnotatedField<X> originalField, UnbackedAnnotatedType<Y> declaringType, SharedObjectCache cache) { UnbackedAnnotatedType<X> downcastDeclaringType = cast(declaringType); return new UnbackedAnnotatedField<X>(originalField.getBaseType(), originalField.getTypeClosure(), cache.getSharedSet(originalField.getAnnotations()), originalField.getJavaMember(), downcastDeclaringType); }
public static <X, Y extends X> AnnotatedField<X> of(AnnotatedField<X> originalField, UnbackedAnnotatedType<Y> declaringType, SharedObjectCache cache) { UnbackedAnnotatedType<X> downcastDeclaringType = cast(declaringType); return new UnbackedAnnotatedField<X>(originalField.getBaseType(), originalField.getTypeClosure(), cache.getSharedSet(originalField.getAnnotations()), originalField.getJavaMember(), downcastDeclaringType); }