org.jboss.weld.injection
Class ConstructorInjectionPoint<T>

java.lang.Object
  extended by org.jboss.weld.introspector.ForwardingAnnotated
      extended by org.jboss.weld.introspector.ForwardingWeldAnnotated<T,S>
          extended by org.jboss.weld.introspector.ForwardingWeldMember<T,T,Constructor<T>>
              extended by org.jboss.weld.introspector.ForwardingWeldConstructor<T>
                  extended by org.jboss.weld.injection.ConstructorInjectionPoint<T>
All Implemented Interfaces:
Serializable, javax.enterprise.inject.spi.Annotated, javax.enterprise.inject.spi.AnnotatedCallable<T>, javax.enterprise.inject.spi.AnnotatedConstructor<T>, javax.enterprise.inject.spi.AnnotatedMember<T>, javax.enterprise.inject.spi.InjectionPoint, WeldInjectionPoint<T,Constructor<T>>, WeldAnnotated<T,Constructor<T>>, WeldCallable<T,T,Constructor<T>>, WeldConstructor<T>, WeldMember<T,T,Constructor<T>>
Direct Known Subclasses:
ProxyClassConstructorInjectionPointWrapper

public class ConstructorInjectionPoint<T>
extends ForwardingWeldConstructor<T>
implements WeldInjectionPoint<T,Constructor<T>>, Serializable

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jboss.weld.injection.WeldInjectionPoint
WeldInjectionPoint.WeldInjectionPointSerializationProxy<T,S>
 
Field Summary
 
Fields inherited from interface org.jboss.weld.introspector.WeldAnnotated
MAPPED_DECLARED_METAANNOTATIONS, MAPPED_METAANNOTATIONS
 
Fields inherited from interface org.jboss.weld.introspector.WeldCallable
MAPPED_PARAMETER_ANNOTATIONS
 
Constructor Summary
protected ConstructorInjectionPoint(javax.enterprise.inject.spi.Bean<T> declaringBean, WeldConstructor<T> constructor)
           
 
Method Summary
protected  WeldConstructor<T> delegate()
           
 boolean equals(Object obj)
           
 javax.enterprise.inject.spi.Annotated getAnnotated()
           
 javax.enterprise.inject.spi.Bean<?> getBean()
           
 Member getMember()
           
protected  Object[] getParameterValues(List<ParameterInjectionPoint<?,T>> parameters, Object specialVal, Class<? extends Annotation> specialParam, BeanManagerImpl manager, javax.enterprise.context.spi.CreationalContext<?> creationalContext)
          Helper method for getting the current parameter values from a list of annotated parameters.
 Set<Annotation> getQualifiers()
          Gets the binding types for this element
 Type getType()
           
 List<ParameterInjectionPoint<?,T>> getWeldParameters()
          Gets the abstracted parameters of the method
 int hashCode()
           
 void inject(Object declaringInstance, Object value)
          Injects an instance
 boolean isDelegate()
           
 boolean isTransient()
           
 T newInstance(BeanManagerImpl manager, javax.enterprise.context.spi.CreationalContext<?> creationalContext)
           
static
<T> ConstructorInjectionPoint<T>
of(javax.enterprise.inject.spi.Bean<T> declaringBean, WeldConstructor<T> constructor)
           
 
Methods inherited from class org.jboss.weld.introspector.ForwardingWeldConstructor
getDeclaringType, getJavaMember, getParameters, getSignature, getWeldParameters, newInstance
 
Methods inherited from class org.jboss.weld.introspector.ForwardingWeldAnnotated
getActualTypeArguments, getBindingsAsArray, getInterfaceClosure, getJavaClass, getMetaAnnotations, getName, getPackage, isFinal, isGeneric, isPackagePrivate, isParameterizedType, isPrimitive, isPrivate, isPublic, isStatic
 
Methods inherited from class org.jboss.weld.introspector.ForwardingAnnotated
getAnnotation, getAnnotations, getBaseType, getTypeClosure, isAnnotationPresent, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jboss.weld.injection.WeldInjectionPoint
getDeclaringType
 
Methods inherited from interface org.jboss.weld.introspector.WeldAnnotated
getActualTypeArguments, getBindingsAsArray, getInterfaceClosure, getJavaClass, getMetaAnnotations, getName, getPackage, isFinal, isGeneric, isPackagePrivate, isParameterizedType, isPrimitive, isPrivate, isPublic, isStatic
 
Methods inherited from interface javax.enterprise.inject.spi.Annotated
getAnnotation, getAnnotations, getBaseType, getTypeClosure, isAnnotationPresent
 
Methods inherited from interface javax.enterprise.inject.spi.AnnotatedMember
isStatic
 

Constructor Detail

ConstructorInjectionPoint

protected ConstructorInjectionPoint(javax.enterprise.inject.spi.Bean<T> declaringBean,
                                    WeldConstructor<T> constructor)
Method Detail

of

public static <T> ConstructorInjectionPoint<T> of(javax.enterprise.inject.spi.Bean<T> declaringBean,
                                                  WeldConstructor<T> constructor)

equals

public boolean equals(Object obj)
Overrides:
equals in class ForwardingAnnotated

hashCode

public int hashCode()
Overrides:
hashCode in class ForwardingAnnotated

delegate

protected WeldConstructor<T> delegate()
Specified by:
delegate in class ForwardingWeldConstructor<T>

getBean

public javax.enterprise.inject.spi.Bean<?> getBean()
Specified by:
getBean in interface javax.enterprise.inject.spi.InjectionPoint

getQualifiers

public Set<Annotation> getQualifiers()
Description copied from interface: WeldAnnotated
Gets the binding types for this element

Specified by:
getQualifiers in interface javax.enterprise.inject.spi.InjectionPoint
Specified by:
getQualifiers in interface WeldAnnotated<T,Constructor<T>>
Overrides:
getQualifiers in class ForwardingWeldAnnotated<T,Constructor<T>>

newInstance

public T newInstance(BeanManagerImpl manager,
                     javax.enterprise.context.spi.CreationalContext<?> creationalContext)

getWeldParameters

public List<ParameterInjectionPoint<?,T>> getWeldParameters()
Description copied from interface: WeldCallable
Gets the abstracted parameters of the method

Specified by:
getWeldParameters in interface WeldCallable<T,T,Constructor<T>>
Overrides:
getWeldParameters in class ForwardingWeldConstructor<T>
Returns:
A list of parameters. Returns an empty list if no parameters are present.

inject

public void inject(Object declaringInstance,
                   Object value)
Description copied from interface: WeldInjectionPoint
Injects an instance

Specified by:
inject in interface WeldInjectionPoint<T,Constructor<T>>
Parameters:
declaringInstance - The instance to inject into
value - The value to inject

getParameterValues

protected Object[] getParameterValues(List<ParameterInjectionPoint<?,T>> parameters,
                                      Object specialVal,
                                      Class<? extends Annotation> specialParam,
                                      BeanManagerImpl manager,
                                      javax.enterprise.context.spi.CreationalContext<?> creationalContext)
Helper method for getting the current parameter values from a list of annotated parameters.

Parameters:
parameters - The list of annotated parameter to look up
manager - The Bean manager
Returns:
The object array of looked up values

getType

public Type getType()
Specified by:
getType in interface javax.enterprise.inject.spi.InjectionPoint

getMember

public Member getMember()
Specified by:
getMember in interface javax.enterprise.inject.spi.InjectionPoint

getAnnotated

public javax.enterprise.inject.spi.Annotated getAnnotated()
Specified by:
getAnnotated in interface javax.enterprise.inject.spi.InjectionPoint

isDelegate

public boolean isDelegate()
Specified by:
isDelegate in interface javax.enterprise.inject.spi.InjectionPoint

isTransient

public boolean isTransient()
Specified by:
isTransient in interface javax.enterprise.inject.spi.InjectionPoint


Copyright © 2013 Seam Framework. All Rights Reserved.