|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.webbeans.introspector.ForwardingAnnotatedItem<T,S>
org.jboss.webbeans.introspector.ForwardingAnnotatedMember<T,java.lang.reflect.Constructor<T>>
org.jboss.webbeans.introspector.ForwardingAnnotatedConstructor<T>
org.jboss.webbeans.injection.ConstructorInjectionPoint<T>
public class ConstructorInjectionPoint<T>
Field Summary |
---|
Fields inherited from interface org.jboss.webbeans.introspector.AnnotatedItem |
---|
MAPPED_METAANNOTATIONS |
Constructor Summary | |
---|---|
protected |
ConstructorInjectionPoint(Bean<?> declaringBean,
AnnotatedConstructor<T> constructor)
|
Method Summary | ||
---|---|---|
protected AnnotatedConstructor<T> |
delegate()
Gets the annotated item |
|
java.lang.annotation.Annotation[] |
getAnnotations()
Get the annotations of the field in the case of field injection, or annotations of the parameter in the case of method parameter or constructor parameter injection. |
|
Bean<?> |
getBean()
Get the Bean object representing the Web Bean that defines the injection point |
|
java.util.Set<java.lang.annotation.Annotation> |
getBindings()
Gets the binding types for this element |
|
java.util.List<ParameterInjectionPoint<?>> |
getParameters()
Gets all parameters to the constructor |
|
protected java.lang.Object[] |
getParameterValues(java.util.List<ParameterInjectionPoint<?>> parameters,
java.lang.Object specialVal,
java.lang.Class<? extends java.lang.annotation.Annotation> specialParam,
ManagerImpl manager,
CreationalContext<?> creationalContext)
Helper method for getting the current parameter values from a list of annotated parameters. |
|
java.lang.reflect.Type |
getType()
Get the declared type of injection point If the injection point is declared in XML, the type and binding types are determined according to Section 10.8, �Specifying API types and binding types�. |
|
void |
inject(java.lang.Object declaringInstance,
java.lang.Object value)
Injects an instance |
|
T |
newInstance(ManagerImpl manager,
CreationalContext<?> creationalContext)
|
|
static
|
of(Bean<?> declaringBean,
AnnotatedConstructor<T> constructor)
|
Methods inherited from class org.jboss.webbeans.introspector.ForwardingAnnotatedConstructor |
---|
getAnnotatedParameters, getDeclaringClass, getSignature, newInstance |
Methods inherited from class org.jboss.webbeans.introspector.ForwardingAnnotatedMember |
---|
getMember |
Methods inherited from class org.jboss.webbeans.introspector.ForwardingAnnotatedItem |
---|
equals, getActualTypeArguments, getAnnotation, getAnnotationsAsSet, getAnnotationStore, getBindingsAsArray, getDeclaredMetaAnnotations, getFlattenedTypeHierarchy, getMetaAnnotations, getMetaAnnotationsAsArray, getName, getRawType, hashCode, isAnnotationPresent, isAssignableFrom, isAssignableFrom, isDeclaredAnnotationPresent, isFinal, isParameterizedType, isProxyable, isPublic, isStatic, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.inject.manager.InjectionPoint |
---|
getAnnotation, getMember, isAnnotationPresent |
Methods inherited from interface org.jboss.webbeans.introspector.AnnotatedItem |
---|
getActualTypeArguments, getAnnotation, getAnnotationsAsSet, getAnnotationStore, getBindingsAsArray, getDeclaredMetaAnnotations, getFlattenedTypeHierarchy, getMetaAnnotations, getMetaAnnotationsAsArray, getName, getRawType, isAnnotationPresent, isAssignableFrom, isAssignableFrom, isDeclaredAnnotationPresent, isFinal, isParameterizedType, isProxyable, isPublic, isStatic |
Methods inherited from interface org.jboss.webbeans.introspector.AnnotatedMember |
---|
getMember |
Constructor Detail |
---|
protected ConstructorInjectionPoint(Bean<?> declaringBean, AnnotatedConstructor<T> constructor)
Method Detail |
---|
public static <T> ConstructorInjectionPoint<T> of(Bean<?> declaringBean, AnnotatedConstructor<T> constructor)
protected AnnotatedConstructor<T> delegate()
ForwardingAnnotatedItem
delegate
in class ForwardingAnnotatedConstructor<T>
public java.lang.annotation.Annotation[] getAnnotations()
InjectionPoint
getAnnotations
in interface InjectionPoint
public Bean<?> getBean()
InjectionPoint
getBean
in interface InjectionPoint
public java.util.Set<java.lang.annotation.Annotation> getBindings()
AnnotatedItem
getBindings
in interface InjectionPoint
getBindings
in interface AnnotatedItem<T,java.lang.reflect.Constructor<T>>
getBindings
in class ForwardingAnnotatedItem<T,java.lang.reflect.Constructor<T>>
AnnotatedItem
public T newInstance(ManagerImpl manager, CreationalContext<?> creationalContext)
public java.util.List<ParameterInjectionPoint<?>> getParameters()
AnnotatedConstructor
getParameters
in interface AnnotatedConstructor<T>
getParameters
in class ForwardingAnnotatedConstructor<T>
public void inject(java.lang.Object declaringInstance, java.lang.Object value)
AnnotatedInjectionPoint
inject
in interface AnnotatedInjectionPoint<T,java.lang.reflect.Constructor<T>>
declaringInstance
- The instance to inject intovalue
- The value to injectprotected java.lang.Object[] getParameterValues(java.util.List<ParameterInjectionPoint<?>> parameters, java.lang.Object specialVal, java.lang.Class<? extends java.lang.annotation.Annotation> specialParam, ManagerImpl manager, CreationalContext<?> creationalContext)
parameters
- The list of annotated parameter to look upmanager
- The Web Beans manager
public java.lang.reflect.Type getType()
InjectionPoint
getType
in interface InjectionPoint
getType
in interface AnnotatedItem<T,java.lang.reflect.Constructor<T>>
getType
in class ForwardingAnnotatedItem<T,java.lang.reflect.Constructor<T>>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |