Package org.jboss.weld.injection
Class ProxyClassConstructorInjectionPointWrapper<T>
- java.lang.Object
-
- org.jboss.weld.injection.ConstructorInjectionPoint<T>
-
- org.jboss.weld.injection.ProxyClassConstructorInjectionPointWrapper<T>
-
- All Implemented Interfaces:
InjectionPoint,WeldInjectionPointAttributes<T,Constructor<T>>
public class ProxyClassConstructorInjectionPointWrapper<T> extends ConstructorInjectionPoint<T>
A wrapper on aConstructorInjectionPoint, to be used if a proxy subclass is instantiated instead of the original (e.g. because the original is an abstractDecorator) This class is immutable.- Author:
- Marius Bogoevici, Ales Justin, Jozef Hartinger
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanhasTransientReferenceParameter
-
Constructor Summary
Constructors Constructor Description ProxyClassConstructorInjectionPointWrapper(Bean<T> declaringBean, Class<?> declaringComponentClass, EnhancedAnnotatedConstructor<T> weldConstructor, ConstructorInjectionPoint<T> originalConstructorInjectionPoint, BeanManagerImpl manager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Bean<?>getBean()Get theBeanobject representing the bean that defines the injection point.AnnotatedConstructor<T>getComponentConstructor()Set<InjectionPoint>getInjectionPoints()Returns a set ofInjectionPointinstances of this constructor/method.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.List<ParameterInjectionPoint<?,T>>getParameterInjectionPoints()<A extends Annotation>
AgetQualifier(Class<A> 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.inthashCode()booleanisDelegate()Determines if the injection point is a decorator delegate injection point.booleanisTransient()Determines if the injection is a transient field.protected TnewInstance(Object[] parameterValues)StringtoString()-
Methods inherited from class org.jboss.weld.injection.ConstructorInjectionPoint
getAnnotated, getParameterValues, getSignature, newInstance
-
-
-
-
Constructor Detail
-
ProxyClassConstructorInjectionPointWrapper
public ProxyClassConstructorInjectionPointWrapper(Bean<T> declaringBean, Class<?> declaringComponentClass, EnhancedAnnotatedConstructor<T> weldConstructor, ConstructorInjectionPoint<T> originalConstructorInjectionPoint, BeanManagerImpl manager)
-
-
Method Detail
-
getParameterInjectionPoints
public List<ParameterInjectionPoint<?,T>> getParameterInjectionPoints()
-
newInstance
protected T newInstance(Object[] parameterValues)
- Overrides:
newInstancein classConstructorInjectionPoint<T>
-
getComponentConstructor
public AnnotatedConstructor<T> getComponentConstructor()
- Overrides:
getComponentConstructorin classConstructorInjectionPoint<T>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classConstructorInjectionPoint<T>
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classConstructorInjectionPoint<T>
-
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
-
getQualifier
public <A extends Annotation> A getQualifier(Class<A> 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,X>
-
getMember
public 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
-
getInjectionPoints
public Set<InjectionPoint> getInjectionPoints()
Returns a set ofInjectionPointinstances of this constructor/method. This set never contains aSpecialParameterInjectionPointand is therefore suitable for use outside of Weld. The returned set is immutable.
-
-