org.jboss.webbeans.introspector
Interface AnnotatedField<T>

All Superinterfaces:
AnnotatedItem<T,java.lang.reflect.Field>
All Known Implementing Classes:
AnnotatedFieldImpl

public interface AnnotatedField<T>
extends AnnotatedItem<T,java.lang.reflect.Field>

AnnotatedField provides a uniform access to the annotations on an annotated field

Author:
Pete Muir

Field Summary
 
Fields inherited from interface org.jboss.webbeans.introspector.AnnotatedItem
MAPPED_METAANNOTATIONS
 
Method Summary
 T get(java.lang.Object instance)
          Injects an instance
 java.lang.reflect.Field getAnnotatedField()
          Gets the annotated field
 AnnotatedType<?> getDeclaringClass()
          Gets an abstraction of the declaring class
 java.lang.String getPropertyName()
          Gets the property name of the field
 void inject(java.lang.Object instance, Manager manager)
          Injects an instance
 void injectIntoInstance(java.lang.Object instance, Manager manager)
          Injects an instance
 
Methods inherited from interface org.jboss.webbeans.introspector.AnnotatedItem
getActualTypeArguments, getAnnotation, getAnnotations, getBindingTypes, getBindingTypesAsArray, getMetaAnnotations, getMetaAnnotationsAsArray, getName, getType, isAnnotationPresent, isAssignableFrom, isAssignableFrom, isFinal, isProxyable, isStatic
 

Method Detail

getAnnotatedField

java.lang.reflect.Field getAnnotatedField()
Gets the annotated field

Returns:
The annotated field

inject

void inject(java.lang.Object instance,
            Manager manager)
Injects an instance

Parameters:
instance - The instance to inject
manager - The Web Beans manager

injectIntoInstance

void injectIntoInstance(java.lang.Object instance,
                        Manager manager)
Injects an instance

Parameters:
instance - The instance to inject
manager - The Web Beans manager

get

T get(java.lang.Object instance)
Injects an instance

Parameters:
instance - The instance to inject

getDeclaringClass

AnnotatedType<?> getDeclaringClass()
Gets an abstraction of the declaring class

Returns:
The declaring class

getPropertyName

java.lang.String getPropertyName()
Gets the property name of the field

Returns:
The name


Copyright © 2008. All Rights Reserved.