org.jboss.weld.introspector
Class ForwardingWeldConstructor<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>
All Implemented Interfaces:
javax.enterprise.inject.spi.Annotated, javax.enterprise.inject.spi.AnnotatedCallable<T>, javax.enterprise.inject.spi.AnnotatedConstructor<T>, javax.enterprise.inject.spi.AnnotatedMember<T>, WeldAnnotated<T,Constructor<T>>, WeldCallable<T,T,Constructor<T>>, WeldConstructor<T>, WeldMember<T,T,Constructor<T>>
Direct Known Subclasses:
ConstructorInjectionPoint

public abstract class ForwardingWeldConstructor<T>
extends ForwardingWeldMember<T,T,Constructor<T>>
implements WeldConstructor<T>


Field Summary
 
Fields inherited from interface org.jboss.weld.introspector.WeldCallable
MAPPED_PARAMETER_ANNOTATIONS
 
Fields inherited from interface org.jboss.weld.introspector.WeldAnnotated
MAPPED_DECLARED_METAANNOTATIONS, MAPPED_METAANNOTATIONS
 
Constructor Summary
ForwardingWeldConstructor()
           
 
Method Summary
protected abstract  WeldConstructor<T> delegate()
           
 WeldClass<T> getDeclaringType()
          Gets an abstraction of the declaring class
 Constructor<T> getJavaMember()
           
 List<javax.enterprise.inject.spi.AnnotatedParameter<T>> getParameters()
           
 ConstructorSignature getSignature()
           
 List<? extends WeldParameter<?,T>> getWeldParameters()
          Gets the abstracted parameters of the method
 List<WeldParameter<?,T>> getWeldParameters(Class<? extends Annotation> annotationType)
          Gets the list of annotated parameters for a given annotation
 T newInstance(Object... parameters)
          Creates a new instance of the class, using this constructor
 
Methods inherited from class org.jboss.weld.introspector.ForwardingWeldAnnotated
getActualTypeArguments, getBindingsAsArray, getInterfaceClosure, getJavaClass, getMetaAnnotations, getName, getPackage, getQualifiers, isFinal, isGeneric, isPackagePrivate, isParameterizedType, isPrimitive, isPrivate, isPublic, isStatic
 
Methods inherited from class org.jboss.weld.introspector.ForwardingAnnotated
equals, getAnnotation, getAnnotations, getBaseType, getTypeClosure, hashCode, isAnnotationPresent, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jboss.weld.introspector.WeldAnnotated
getActualTypeArguments, getBindingsAsArray, getInterfaceClosure, getJavaClass, getMetaAnnotations, getName, getPackage, getQualifiers, isFinal, isGeneric, isPackagePrivate, isParameterizedType, isPrimitive, isPrivate, isPublic, isStatic
 
Methods inherited from interface javax.enterprise.inject.spi.AnnotatedMember
isStatic
 
Methods inherited from interface javax.enterprise.inject.spi.Annotated
getAnnotation, getAnnotations, getBaseType, getTypeClosure, isAnnotationPresent
 

Constructor Detail

ForwardingWeldConstructor

public ForwardingWeldConstructor()
Method Detail

delegate

protected abstract WeldConstructor<T> delegate()
Specified by:
delegate in class ForwardingWeldMember<T,T,Constructor<T>>

getWeldParameters

public List<WeldParameter<?,T>> getWeldParameters(Class<? extends Annotation> annotationType)
Description copied from interface: WeldCallable
Gets the list of annotated parameters for a given annotation

Specified by:
getWeldParameters in interface WeldCallable<T,T,Constructor<T>>
Parameters:
annotationType - The annotation to match
Returns:
A set of matching parameter abstractions. Returns an empty list if there are no matches.

getDeclaringType

public WeldClass<T> getDeclaringType()
Description copied from interface: WeldMember
Gets an abstraction of the declaring class

Specified by:
getDeclaringType in interface javax.enterprise.inject.spi.AnnotatedMember<T>
Specified by:
getDeclaringType in interface WeldMember<T,T,Constructor<T>>
Overrides:
getDeclaringType in class ForwardingWeldMember<T,T,Constructor<T>>
Returns:
The declaring class

getWeldParameters

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

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

newInstance

public T newInstance(Object... parameters)
              throws IllegalArgumentException,
                     InstantiationException,
                     IllegalAccessException,
                     InvocationTargetException
Description copied from interface: WeldConstructor
Creates a new instance of the class, using this constructor

Specified by:
newInstance in interface WeldConstructor<T>
Returns:
The created instance
Throws:
IllegalArgumentException
InstantiationException
IllegalAccessException
InvocationTargetException

getSignature

public ConstructorSignature getSignature()
Specified by:
getSignature in interface WeldConstructor<T>

getParameters

public List<javax.enterprise.inject.spi.AnnotatedParameter<T>> getParameters()
Specified by:
getParameters in interface javax.enterprise.inject.spi.AnnotatedCallable<T>

getJavaMember

public Constructor<T> getJavaMember()
Specified by:
getJavaMember in interface javax.enterprise.inject.spi.AnnotatedConstructor<T>
Specified by:
getJavaMember in interface javax.enterprise.inject.spi.AnnotatedMember<T>


Copyright © 2013 Seam Framework. All Rights Reserved.