org.jboss.weld.introspector
Class ForwardingWeldConstructor<T>

java.lang.Object
  extended by org.jboss.weld.introspector.ForwardingAnnotated<T,S>
      extended by org.jboss.weld.introspector.ForwardingWeldAnnotated<T,S>
          extended by org.jboss.weld.introspector.ForwardingWeldMember<T,T,java.lang.reflect.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,java.lang.reflect.Constructor<T>>, WeldCallable<T,T,java.lang.reflect.Constructor<T>>, WeldConstructor<T>, WeldMember<T,T,java.lang.reflect.Constructor<T>>
Direct Known Subclasses:
ConstructorInjectionPoint

public abstract class ForwardingWeldConstructor<T>
extends ForwardingWeldMember<T,T,java.lang.reflect.Constructor<T>>
implements WeldConstructor<T>


Field Summary
 
Fields inherited from interface org.jboss.weld.introspector.WeldConstructor
MAPPED_PARAMETER_ANNOTATIONS
 
Fields inherited from interface org.jboss.weld.introspector.WeldAnnotated
MAPPED_METAANNOTATIONS
 
Constructor Summary
ForwardingWeldConstructor()
           
 
Method Summary
protected abstract  WeldConstructor<T> delegate()
           
 java.util.List<WeldParameter<?,T>> getAnnotatedWBParameters(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
          Gets the list of annotated parameters for a given annotation
 WeldClass<T> getDeclaringType()
          Gets an abstraction of the declaring class
 java.util.List<javax.enterprise.inject.spi.AnnotatedParameter<T>> getParameters()
           
 ConstructorSignature getSignature()
           
 java.util.List<? extends WeldParameter<?,T>> getWBParameters()
          Gets the abstracted parameters of the method
 T newInstance(java.lang.Object... parameters)
          Creates a new instance of the class, using this constructor
 
Methods inherited from class org.jboss.weld.introspector.ForwardingWeldMember
getJavaMember
 
Methods inherited from class org.jboss.weld.introspector.ForwardingWeldAnnotated
getActualTypeArguments, getBindingsAsArray, getDeclaredMetaAnnotations, getInterfaceOnlyFlattenedTypeHierarchy, getJavaClass, getMetaAnnotations, getMetaAnnotationsAsArray, getName, getPackage, getQualifiers, isDeclaredAnnotationPresent, isFinal, isPackagePrivate, isParameterizedType, isPrivate, isProxyable, 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.WeldMember
getJavaMember
 
Methods inherited from interface org.jboss.weld.introspector.WeldAnnotated
getActualTypeArguments, getBindingsAsArray, getDeclaredMetaAnnotations, getInterfaceOnlyFlattenedTypeHierarchy, getJavaClass, getMetaAnnotations, getMetaAnnotationsAsArray, getName, getPackage, getQualifiers, isDeclaredAnnotationPresent, isFinal, isPackagePrivate, isParameterizedType, isPrivate, isProxyable, isPublic, isStatic
 
Methods inherited from interface javax.enterprise.inject.spi.AnnotatedConstructor
getJavaMember
 
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,java.lang.reflect.Constructor<T>>

getAnnotatedWBParameters

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

Specified by:
getAnnotatedWBParameters in interface WeldCallable<T,T,java.lang.reflect.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,java.lang.reflect.Constructor<T>>
Overrides:
getDeclaringType in class ForwardingWeldMember<T,T,java.lang.reflect.Constructor<T>>
Returns:
The declaring class

getWBParameters

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

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

newInstance

public T newInstance(java.lang.Object... parameters)
              throws java.lang.IllegalArgumentException,
                     java.lang.InstantiationException,
                     java.lang.IllegalAccessException,
                     java.lang.reflect.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:
java.lang.IllegalArgumentException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException

getSignature

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

getParameters

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


Copyright © 2008-2009 Seam Framework. All Rights Reserved.