org.jboss.weld.injection
Class ProxyClassConstructorInjectionPointWrapper<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>
                      extended by org.jboss.weld.injection.ProxyClassConstructorInjectionPointWrapper<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>>

public class ProxyClassConstructorInjectionPointWrapper<T>
extends ConstructorInjectionPoint<T>

A wrapper on a ConstructorInjectionPoint, to be used if a proxy subclass is instantiated instead of the original (e.g. because the original is an abstract Decorator)

This is a wrapper class, it is not thread-safe and any instance of this class should be used only for temporarily enhancing the bean instance creation process.

Author:
Marius Bogoevici, Ales Justin
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
ProxyClassConstructorInjectionPointWrapper(javax.enterprise.inject.spi.Bean<T> declaringBean, WeldConstructor<T> weldConstructor, ConstructorInjectionPoint<T> originalConstructorInjectionPoint)
           
 
Method Summary
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.
 List<ParameterInjectionPoint<?,T>> getWeldParameters()
          Gets the abstracted parameters of the method
 T newInstance(BeanManagerImpl manager, javax.enterprise.context.spi.CreationalContext<?> creationalContext)
           
 
Methods inherited from class org.jboss.weld.injection.ConstructorInjectionPoint
delegate, equals, getAnnotated, getBean, getMember, getQualifiers, getType, hashCode, inject, isDelegate, isTransient, of
 
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

ProxyClassConstructorInjectionPointWrapper

public ProxyClassConstructorInjectionPointWrapper(javax.enterprise.inject.spi.Bean<T> declaringBean,
                                                  WeldConstructor<T> weldConstructor,
                                                  ConstructorInjectionPoint<T> originalConstructorInjectionPoint)
Method Detail

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 ConstructorInjectionPoint<T>
Returns:
A list of parameters. Returns an empty list if no parameters are present.

getParameterValues

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

Overrides:
getParameterValues in class ConstructorInjectionPoint<T>
Parameters:
parameters - The list of annotated parameter to look up
manager - The Bean manager
Returns:
The object array of looked up values

newInstance

public T newInstance(BeanManagerImpl manager,
                     javax.enterprise.context.spi.CreationalContext<?> creationalContext)
Overrides:
newInstance in class ConstructorInjectionPoint<T>


Copyright © 2013 Seam Framework. All Rights Reserved.