org.jboss.webbeans.injection
Class ConstructorInjectionPoint<T>
java.lang.Object
org.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>
- All Implemented Interfaces:
- InjectionPoint, AnnotatedInjectionPoint<T,java.lang.reflect.Constructor<T>>, AnnotatedConstructor<T>, AnnotatedItem<T,java.lang.reflect.Constructor<T>>, AnnotatedMember<T,java.lang.reflect.Constructor<T>>
public class ConstructorInjectionPoint<T>
- extends ForwardingAnnotatedConstructor<T>
- implements AnnotatedInjectionPoint<T,java.lang.reflect.Constructor<T>>
| Methods inherited from class org.jboss.webbeans.introspector.ForwardingAnnotatedItem |
equals, getActualTypeArguments, getAnnotation, getAnnotationsAsSet, getAnnotationStore, getBindingTypes, getBindingTypesAsArray, getDeclaredMetaAnnotations, getMetaAnnotations, getMetaAnnotationsAsArray, getName, getType, hashCode, isAnnotationPresent, isAssignableFrom, isAssignableFrom, isDeclaredAnnotationPresent, isFinal, isProxyable, isPublic, isStatic, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jboss.webbeans.introspector.AnnotatedItem |
getActualTypeArguments, getAnnotation, getAnnotationsAsSet, getAnnotationStore, getBindingTypes, getBindingTypesAsArray, getDeclaredMetaAnnotations, getMetaAnnotations, getMetaAnnotationsAsArray, getName, getType, isAnnotationPresent, isAssignableFrom, isAssignableFrom, isDeclaredAnnotationPresent, isFinal, isProxyable, isPublic, isStatic |
ConstructorInjectionPoint
protected ConstructorInjectionPoint(Bean<?> declaringBean,
AnnotatedConstructor<T> constructor)
of
public static <T> ConstructorInjectionPoint<T> of(Bean<?> declaringBean,
AnnotatedConstructor<T> constructor)
delegate
protected AnnotatedConstructor<T> delegate()
- Description copied from class:
ForwardingAnnotatedItem
- Gets the annotated item
- Specified by:
delegate in class ForwardingAnnotatedConstructor<T>
- Returns:
- The annotated item
getAnnotations
public java.lang.annotation.Annotation[] getAnnotations()
- Specified by:
getAnnotations in interface InjectionPoint
getBean
public Bean<?> getBean()
- Specified by:
getBean in interface InjectionPoint
getBindings
public java.util.Set<java.lang.annotation.Annotation> getBindings()
- Specified by:
getBindings in interface InjectionPoint
newInstance
public T newInstance(ManagerImpl manager,
CreationalContext<?> creationalContext)
getParameters
public java.util.List<ParameterInjectionPoint<?>> getParameters()
- Description copied from interface:
AnnotatedConstructor
- Gets all parameters to the constructor
- Specified by:
getParameters in interface AnnotatedConstructor<T>- Overrides:
getParameters in class ForwardingAnnotatedConstructor<T>
- Returns:
- A set of abstracted parameters. Returns an empty set if there are
no parameters
inject
public void inject(java.lang.Object declaringInstance,
java.lang.Object value)
- Description copied from interface:
AnnotatedInjectionPoint
- Injects an instance
- Specified by:
inject in interface AnnotatedInjectionPoint<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<?>> 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.
- Parameters:
parameters - The list of annotated parameter to look upmanager - The Web Beans manager
- Returns:
- The object array of looked up values
Copyright © 2008-2009. All Rights Reserved.