Class AbstractInferringInjectionPointAttributes<T,S>
- java.lang.Object
-
- org.jboss.weld.injection.attributes.AbstractInferringInjectionPointAttributes<T,S>
-
- All Implemented Interfaces:
Serializable,InjectionPoint,WeldInjectionPointAttributes<T,S>
- Direct Known Subclasses:
InferringFieldInjectionPointAttributes,InferringParameterInjectionPointAttributes
public abstract class AbstractInferringInjectionPointAttributes<T,S> extends Object implements WeldInjectionPointAttributes<T,S>, Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractInferringInjectionPointAttributes(EnhancedAnnotated<?,?> annotatedElement, String contextId, Bean<?> bean, Set<Annotation> qualifiers, Class<?> declaringComponentClass)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Bean<?>getBean()Get theBeanobject representing the bean that defines the injection point.abstract MembergetMember()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.<X extends Annotation>
XgetQualifier(Class<X> annotationType)Returns an instance of a given qualifier annotation or null if a given qualifier is not present on the injection point.Set<Annotation>getQualifiers()Get the required qualifiers of the injection point.TypegetType()Get the required type of injection point.booleanisDelegate()Determines if the injection point is a decorator delegate injection point.booleanisTransient()Determines if the injection is a transient field.StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface javax.enterprise.inject.spi.InjectionPoint
getAnnotated
-
-
-
-
Constructor Detail
-
AbstractInferringInjectionPointAttributes
public AbstractInferringInjectionPointAttributes(EnhancedAnnotated<?,?> annotatedElement, String contextId, Bean<?> bean, Set<Annotation> qualifiers, Class<?> declaringComponentClass)
-
-
Method Detail
-
getType
public Type getType()
Description copied from interface:InjectionPointGet the required type of injection point.- Specified by:
getTypein interfaceInjectionPoint- Returns:
- the required type
-
getQualifiers
public Set<Annotation> getQualifiers()
Description copied from interface:InjectionPointGet the required qualifiers of the injection point.- Specified by:
getQualifiersin interfaceInjectionPoint- Returns:
- the required qualifiers
-
getBean
public Bean<?> getBean()
Description copied from interface:InjectionPointGet theBeanobject representing the bean that defines the injection point. If the injection point does not belong to a bean, return a null value.- Specified by:
getBeanin interfaceInjectionPoint- Returns:
- the
Beanobject representing bean that defines the injection point, of null if the injection point does not belong to a bean
-
isDelegate
public boolean isDelegate()
Description copied from interface:InjectionPointDetermines if the injection point is a decorator delegate injection point.- Specified by:
isDelegatein interfaceInjectionPoint- Returns:
- true if the injection point is a decorator delegate injection point, and false otherwise
-
isTransient
public boolean isTransient()
Description copied from interface:InjectionPointDetermines if the injection is a transient field.- Specified by:
isTransientin interfaceInjectionPoint- Returns:
- true if the injection point is a transient field, and false otherwise
-
getMember
public abstract Member 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 interfaceInjectionPoint- Returns:
- the member
-
getQualifier
public <X extends Annotation> X getQualifier(Class<X> annotationType)
Description copied from interface:WeldInjectionPointAttributesReturns an instance of a given qualifier annotation or null if a given qualifier is not present on the injection point.- Specified by:
getQualifierin interfaceWeldInjectionPointAttributes<T,S>
-
-