Class InferringFieldInjectionPointAttributes<T,X>
- java.lang.Object
-
- org.jboss.weld.injection.attributes.AbstractInferringInjectionPointAttributes<T,Field>
-
- org.jboss.weld.injection.attributes.InferringFieldInjectionPointAttributes<T,X>
-
- All Implemented Interfaces:
Serializable,InjectionPoint,FieldInjectionPointAttributes<T,X>,WeldInjectionPointAttributes<T,Field>
public class InferringFieldInjectionPointAttributes<T,X> extends AbstractInferringInjectionPointAttributes<T,Field> implements FieldInjectionPointAttributes<T,X>
An implementation ofWeldInjectionPointAttributesthat infers the attributes by readingEnhancedAnnotatedField.- Author:
- Jozef Hartinger
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedInferringFieldInjectionPointAttributes(EnhancedAnnotatedField<T,X> field, Bean<?> bean, Class<?> declaringComponentClass, BeanManagerImpl manager)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)AnnotatedField<X>getAnnotated()Obtain an instance ofAnnotatedFieldorAnnotatedParameter, depending upon whether the injection point is an injected field or a constructor/method parameter.FieldgetMember()Get theFieldobject in the case of field injection, theMethodobject in the case of method parameter injection or theConstructorobject in the case of constructor parameter injection.inthashCode()static <T,X>
InferringFieldInjectionPointAttributes<T,X>of(EnhancedAnnotatedField<T,X> field, Bean<?> bean, Class<?> declaringComponentClass, BeanManagerImpl manager)-
Methods inherited from class org.jboss.weld.injection.attributes.AbstractInferringInjectionPointAttributes
getBean, getQualifier, getQualifiers, getType, isDelegate, isTransient, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface javax.enterprise.inject.spi.InjectionPoint
getBean, getQualifiers, getType, isDelegate, isTransient
-
Methods inherited from interface org.jboss.weld.injection.attributes.WeldInjectionPointAttributes
getQualifier
-
-
-
-
Constructor Detail
-
InferringFieldInjectionPointAttributes
protected InferringFieldInjectionPointAttributes(EnhancedAnnotatedField<T,X> field, Bean<?> bean, Class<?> declaringComponentClass, BeanManagerImpl manager)
-
-
Method Detail
-
of
public static <T,X> InferringFieldInjectionPointAttributes<T,X> of(EnhancedAnnotatedField<T,X> field, Bean<?> bean, Class<?> declaringComponentClass, BeanManagerImpl manager)
-
getMember
public Field getMember()
Description copied from interface:InjectionPointGet theFieldobject in the case of field injection, theMethodobject in the case of method parameter injection or theConstructorobject in the case of constructor parameter injection.- Specified by:
getMemberin interfaceFieldInjectionPointAttributes<T,X>- Specified by:
getMemberin interfaceInjectionPoint- Specified by:
getMemberin classAbstractInferringInjectionPointAttributes<T,Field>- Returns:
- the member
-
getAnnotated
public AnnotatedField<X> getAnnotated()
Description copied from interface:InjectionPointObtain an instance ofAnnotatedFieldorAnnotatedParameter, depending upon whether the injection point is an injected field or a constructor/method parameter.- Specified by:
getAnnotatedin interfaceFieldInjectionPointAttributes<T,X>- Specified by:
getAnnotatedin interfaceInjectionPoint- Returns:
- an
AnnotatedFieldorAnnotatedParameter
-
-