T
- public class ConstructorInjectionPoint<T> extends Object
Modifier | Constructor and Description |
---|---|
protected |
ConstructorInjectionPoint(EnhancedAnnotatedConstructor<T> constructor,
Bean<T> declaringBean,
Class<?> declaringComponentClass,
InjectionPointFactory factory,
BeanManagerImpl manager) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
AnnotatedConstructor<T> |
getAnnotated()
Obtain an instance of
AnnotatedField or
AnnotatedParameter , depending upon whether the injection point is an injected field
or a constructor/method parameter. |
Bean<?> |
getBean()
Get the
Bean object representing the bean that defines the injection point. |
AnnotatedConstructor<T> |
getComponentConstructor() |
Set<InjectionPoint> |
getInjectionPoints()
Returns a set of
InjectionPoint instances of this constructor/method. |
Member |
getMember()
Get the
Field object in the case of field injection, the Method
object in the case of method parameter injection or the Constructor object in the case of
constructor parameter injection. |
List<ParameterInjectionPoint<?,X>> |
getParameterInjectionPoints() |
Object[] |
getParameterValues(BeanManagerImpl manager,
CreationalContext<?> ctx,
CreationalContext<?> invocationContext)
Helper method for getting the current parameter values from a list of annotated parameters.
|
<A extends Annotation> |
getQualifier(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.
|
ConstructorSignature |
getSignature() |
Type |
getType()
Get the required type of injection point.
|
int |
hashCode() |
boolean |
isDelegate()
Determines if the injection point is a decorator delegate injection point.
|
boolean |
isTransient()
Determines if the injection is a transient field.
|
T |
newInstance(BeanManagerImpl manager,
CreationalContext<?> ctx) |
protected T |
newInstance(Object[] parameterValues) |
String |
toString() |
protected ConstructorInjectionPoint(EnhancedAnnotatedConstructor<T> constructor, Bean<T> declaringBean, Class<?> declaringComponentClass, InjectionPointFactory factory, BeanManagerImpl manager)
public T newInstance(BeanManagerImpl manager, CreationalContext<?> ctx)
public Object[] getParameterValues(BeanManagerImpl manager, CreationalContext<?> ctx, CreationalContext<?> invocationContext)
parameters
- The list of annotated parameter to look upmanager
- The Bean managerpublic AnnotatedConstructor<T> getAnnotated()
InjectionPoint
AnnotatedField
or
AnnotatedParameter
, depending upon whether the injection point is an injected field
or a constructor/method parameter.getAnnotated
in interface InjectionPoint
AnnotatedField
or AnnotatedParameter
public ConstructorSignature getSignature()
public AnnotatedConstructor<T> getComponentConstructor()
public Type getType()
InjectionPoint
getType
in interface InjectionPoint
public Set<Annotation> getQualifiers()
InjectionPoint
getQualifiers
in interface InjectionPoint
public Bean<?> getBean()
InjectionPoint
Bean
object representing the bean that defines the injection point. If the
injection point does not belong to a bean, return a null value.getBean
in interface InjectionPoint
Bean
object representing bean that defines the injection point, of null
if the injection point does not belong to a beanpublic boolean isDelegate()
InjectionPoint
isDelegate
in interface InjectionPoint
public boolean isTransient()
InjectionPoint
isTransient
in interface InjectionPoint
public <A extends Annotation> A getQualifier(Class<A> annotationType)
WeldInjectionPointAttributes
getQualifier
in interface WeldInjectionPointAttributes<T,S extends Member>
public Member getMember()
InjectionPoint
Field
object in the case of field injection, the Method
object in the case of method parameter injection or the Constructor
object in the case of
constructor parameter injection.getMember
in interface InjectionPoint
public List<ParameterInjectionPoint<?,X>> getParameterInjectionPoints()
public Set<InjectionPoint> getInjectionPoints()
InjectionPoint
instances of this constructor/method. This set never contains a
SpecialParameterInjectionPoint
and is therefore suitable for use outside of Weld. The returned set
is immutable.Copyright © 2013 Seam Framework. All Rights Reserved.