org.jboss.webbeans.injection
Class FieldInjectionPoint<T>

java.lang.Object
  extended by org.jboss.webbeans.introspector.ForwardingAnnotatedItem<T,S>
      extended by org.jboss.webbeans.introspector.ForwardingAnnotatedMember<T,java.lang.reflect.Field>
          extended by org.jboss.webbeans.introspector.ForwardingAnnotatedField<T>
              extended by org.jboss.webbeans.injection.FieldInjectionPoint<T>
All Implemented Interfaces:
InjectionPoint, AnnotatedInjectionPoint<T,java.lang.reflect.Field>, AnnotatedField<T>, AnnotatedItem<T,java.lang.reflect.Field>, AnnotatedMember<T,java.lang.reflect.Field>

public class FieldInjectionPoint<T>
extends ForwardingAnnotatedField<T>
implements AnnotatedInjectionPoint<T,java.lang.reflect.Field>


Field Summary
 
Fields inherited from interface org.jboss.webbeans.introspector.AnnotatedItem
MAPPED_METAANNOTATIONS
 
Constructor Summary
protected FieldInjectionPoint(Bean<?> declaringBean, AnnotatedField<T> field)
           
 
Method Summary
protected  AnnotatedField<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
 void inject(java.lang.Object declaringInstance, ManagerImpl manager, CreationalContext<?> creationalContext)
           
 void inject(java.lang.Object declaringInstance, java.lang.Object value)
          Injects an instance
static
<T> FieldInjectionPoint<T>
of(Bean<?> declaringBean, AnnotatedField<T> field)
           
 
Methods inherited from class org.jboss.webbeans.introspector.ForwardingAnnotatedField
get, getAnnotatedField, getDeclaringClass, getPropertyName, isTransient, set
 
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, getType, 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, getType, isAnnotationPresent
 
Methods inherited from interface org.jboss.webbeans.introspector.AnnotatedItem
getActualTypeArguments, getAnnotation, getAnnotationsAsSet, getAnnotationStore, getBindingsAsArray, getDeclaredMetaAnnotations, getFlattenedTypeHierarchy, getMetaAnnotations, getMetaAnnotationsAsArray, getName, getRawType, getType, isAnnotationPresent, isAssignableFrom, isAssignableFrom, isDeclaredAnnotationPresent, isFinal, isParameterizedType, isProxyable, isPublic, isStatic
 
Methods inherited from interface org.jboss.webbeans.introspector.AnnotatedMember
getMember
 

Constructor Detail

FieldInjectionPoint

protected FieldInjectionPoint(Bean<?> declaringBean,
                              AnnotatedField<T> field)
Method Detail

of

public static <T> FieldInjectionPoint<T> of(Bean<?> declaringBean,
                                            AnnotatedField<T> field)

delegate

protected AnnotatedField<T> delegate()
Description copied from class: ForwardingAnnotatedItem
Gets the annotated item

Specified by:
delegate in class ForwardingAnnotatedField<T>
Returns:
The annotated item

getAnnotations

public java.lang.annotation.Annotation[] getAnnotations()
Description copied from interface: InjectionPoint
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.

Specified by:
getAnnotations in interface InjectionPoint
Returns:
the annotations of the field

getBean

public Bean<?> getBean()
Description copied from interface: InjectionPoint
Get the Bean object representing the Web Bean that defines the injection point

Specified by:
getBean in interface InjectionPoint
Returns:
the Bean object representing the Web Bean that defines the injection point

getBindings

public java.util.Set<java.lang.annotation.Annotation> getBindings()
Description copied from interface: AnnotatedItem
Gets the binding types for this element

Specified by:
getBindings in interface InjectionPoint
Specified by:
getBindings in interface AnnotatedItem<T,java.lang.reflect.Field>
Overrides:
getBindings in class ForwardingAnnotatedItem<T,java.lang.reflect.Field>
Returns:
the declared binding types of the injection point
See Also:
AnnotatedItem

inject

public void inject(java.lang.Object declaringInstance,
                   ManagerImpl manager,
                   CreationalContext<?> creationalContext)

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.Field>
Parameters:
declaringInstance - The instance to inject into
value - The value to inject


Copyright © 2011. All Rights Reserved.