org.jboss.weld.injection
Class ConstructorInjectionPoint<T>
java.lang.Object
org.jboss.weld.introspector.ForwardingAnnotated<T,S>
org.jboss.weld.introspector.ForwardingWeldAnnotated<T,S>
org.jboss.weld.introspector.ForwardingWeldMember<T,T,java.lang.reflect.Constructor<T>>
org.jboss.weld.introspector.ForwardingWeldConstructor<T>
org.jboss.weld.injection.ConstructorInjectionPoint<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>, javax.enterprise.inject.spi.InjectionPoint, WeldInjectionPoint<T,java.lang.reflect.Constructor<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>>
public class ConstructorInjectionPoint<T>
- extends ForwardingWeldConstructor<T>
- implements WeldInjectionPoint<T,java.lang.reflect.Constructor<T>>
| Methods inherited from class org.jboss.weld.introspector.ForwardingWeldAnnotated |
getActualTypeArguments, getBindingsAsArray, getDeclaredMetaAnnotations, getInterfaceOnlyFlattenedTypeHierarchy, getJavaClass, getMetaAnnotations, getMetaAnnotationsAsArray, getName, getPackage, isDeclaredAnnotationPresent, isFinal, isPackagePrivate, isParameterizedType, isPrivate, isProxyable, isPublic, isStatic |
| 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, getDeclaredMetaAnnotations, getInterfaceOnlyFlattenedTypeHierarchy, getJavaClass, getMetaAnnotations, getMetaAnnotationsAsArray, getName, getPackage, isDeclaredAnnotationPresent, isFinal, isPackagePrivate, isParameterizedType, isPrivate, isProxyable, isPublic, isStatic |
| Methods inherited from interface javax.enterprise.inject.spi.Annotated |
getAnnotation, getAnnotations, getBaseType, getTypeClosure, isAnnotationPresent |
| Methods inherited from interface javax.enterprise.inject.spi.AnnotatedConstructor |
getJavaMember |
| Methods inherited from interface javax.enterprise.inject.spi.AnnotatedMember |
isStatic |
ConstructorInjectionPoint
protected ConstructorInjectionPoint(javax.enterprise.inject.spi.Bean<T> declaringBean,
WeldConstructor<T> constructor)
of
public static <T> ConstructorInjectionPoint<T> of(javax.enterprise.inject.spi.Bean<T> declaringBean,
WeldConstructor<T> constructor)
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 java.util.Set<java.lang.annotation.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,java.lang.reflect.Constructor<T>>- Overrides:
getQualifiers in class ForwardingWeldAnnotated<T,java.lang.reflect.Constructor<T>>
newInstance
public T newInstance(BeanManagerImpl manager,
javax.enterprise.context.spi.CreationalContext<?> creationalContext)
getWBParameters
public java.util.List<ParameterInjectionPoint<?,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>>- Overrides:
getWBParameters in class ForwardingWeldConstructor<T>
- Returns:
- A list of parameters. Returns an empty list if no parameters are
present.
inject
public void inject(java.lang.Object declaringInstance,
java.lang.Object value)
- Description copied from interface:
WeldInjectionPoint
- Injects an instance
- Specified by:
inject in interface WeldInjectionPoint<T,java.lang.reflect.Constructor<T>>
- Parameters:
declaringInstance - The instance to inject intovalue - The value to inject
getParameterValues
protected java.lang.Object[] getParameterValues(java.util.List<ParameterInjectionPoint<?,T>> parameters,
java.lang.Object specialVal,
java.lang.Class<? extends java.lang.annotation.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 upmanager - The Bean manager
- Returns:
- The object array of looked up values
getType
public java.lang.reflect.Type getType()
- Specified by:
getType in interface javax.enterprise.inject.spi.InjectionPoint
getMember
public java.lang.reflect.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 © 2008-2009 Seam Framework. All Rights Reserved.