|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.webbeans.introspector.jlr.AbstractAnnotatedItem<T,S>
T - S - public abstract class AbstractAnnotatedItem<T,S>
Represents functionality common for all annotated items, mainly different mappings of the annotations and meta-annotations AbstractAnnotatedItem is an immutable class and therefore threadsafe
AnnotatedItem| Nested Class Summary | |
|---|---|
static class |
AbstractAnnotatedItem.AnnotationMap
Represents a mapping from a annotation type to an annotation implementation |
| Field Summary |
|---|
| Fields inherited from interface org.jboss.webbeans.introspector.AnnotatedItem |
|---|
MAPPED_METAANNOTATIONS |
| Constructor Summary | |
|---|---|
AbstractAnnotatedItem(AbstractAnnotatedItem.AnnotationMap annotationMap)
Constructor Also builds the meta-annotation map. |
|
| Method Summary | ||
|---|---|---|
protected static AbstractAnnotatedItem.AnnotationMap |
buildAnnotationMap(java.lang.reflect.AnnotatedElement element)
Static helper method for building annotation map from an annotated element |
|
protected static AbstractAnnotatedItem.AnnotationMap |
buildAnnotationMap(java.lang.annotation.Annotation[] annotations)
Builds the annotation map (annotation type -> annotation) |
|
boolean |
equals(java.lang.Object other)
Compares two AbstractAnnotatedItems |
|
|
getAnnotation(java.lang.Class<? extends A> annotationType)
Gets the annotation for a given annotation type. |
|
protected java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.lang.annotation.Annotation> |
getAnnotationMap()
Gets the annotation map |
|
java.util.Set<java.lang.annotation.Annotation> |
getAnnotations()
Gets all annotations on this item Populates the annotationSet if it was empty |
|
java.util.Set<java.lang.annotation.Annotation> |
getBindingTypes()
Gets the binding types of the item Looks at the meta-annotations map for annotations with binding type meta-annotation. |
|
java.lang.annotation.Annotation[] |
getBindingTypesAsArray()
Gets (as array) the binding types of the item Looks at the meta-annotations map for annotations with binding type meta-annotation. |
|
protected abstract S |
getDelegate()
|
|
java.util.Set<java.lang.annotation.Annotation> |
getMetaAnnotations(java.lang.Class<? extends java.lang.annotation.Annotation> metaAnnotationType)
Gets the set of annotations that contain a given annotation type |
|
java.lang.annotation.Annotation[] |
getMetaAnnotationsAsArray(java.lang.Class<? extends java.lang.annotation.Annotation> metaAnnotationType)
Gets (as an array) the set of annotations that contain a given annotation type. |
|
protected static java.lang.Object[] |
getParameterValues(java.util.List<AnnotatedParameter<java.lang.Object>> parameters,
Manager manager)
Static helper method for getting the current parameter values from a list of annotated parameters. |
|
protected static java.lang.Object[] |
getParameterValues(java.util.List<AnnotatedParameter<java.lang.Object>> parameters,
java.lang.Object specialVal,
java.lang.Class<? extends java.lang.annotation.Annotation> specialParam,
Manager manager)
Static helper method for getting the current parameter values from a list of annotated parameters. |
|
int |
hashCode()
Gets the hash code of the actual type |
|
boolean |
isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotatedType)
Checks if an annotation is present on the item |
|
boolean |
isAssignableFrom(AnnotatedItem<?,?> that)
Checks if this item is assignable from another annotated item (through type and actual type arguments) |
|
boolean |
isAssignableFrom(java.util.Set<java.lang.Class<?>> types)
Checks if this item is assignable from any one a set of types |
|
boolean |
isProxyable()
Indicates if the type is proxyable to a set of pre-defined rules |
|
java.lang.String |
toDetailedString()
|
|
java.lang.String |
toString()
Gets a string representation of the item |
|
| 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, getName, getType, isFinal, isStatic |
| Constructor Detail |
|---|
public AbstractAnnotatedItem(AbstractAnnotatedItem.AnnotationMap annotationMap)
annotationMap - A map of annotation to register| Method Detail |
|---|
protected static AbstractAnnotatedItem.AnnotationMap buildAnnotationMap(java.lang.reflect.AnnotatedElement element)
element - The element to examine
protected static AbstractAnnotatedItem.AnnotationMap buildAnnotationMap(java.lang.annotation.Annotation[] annotations)
annotations - The array of annotations to map
protected static java.lang.Object[] getParameterValues(java.util.List<AnnotatedParameter<java.lang.Object>> parameters,
Manager manager)
parameters - The list of annotated parameter to look upmanager - The Web Beans manager
protected static java.lang.Object[] getParameterValues(java.util.List<AnnotatedParameter<java.lang.Object>> parameters,
java.lang.Object specialVal,
java.lang.Class<? extends java.lang.annotation.Annotation> specialParam,
Manager manager)
parameters - The list of annotated parameter to look upmanager - The Web Beans manager
public <A extends java.lang.annotation.Annotation> A getAnnotation(java.lang.Class<? extends A> annotationType)
getAnnotation in interface AnnotatedItem<T,S>annotationType - the annotation type to match
AnnotatedItem.getAnnotation(Class)public java.util.Set<java.lang.annotation.Annotation> getMetaAnnotations(java.lang.Class<? extends java.lang.annotation.Annotation> metaAnnotationType)
getMetaAnnotations in interface AnnotatedItem<T,S>metaAnnotationType - The meta-annotation type to match
AnnotatedItem.getMetaAnnotations(Class)public java.lang.annotation.Annotation[] getMetaAnnotationsAsArray(java.lang.Class<? extends java.lang.annotation.Annotation> metaAnnotationType)
getMetaAnnotationsAsArray in interface AnnotatedItem<T,S>metaAnnotationType - meta-annotation type to match
AnnotatedItem.getMetaAnnotationsAsArray(Class)public java.util.Set<java.lang.annotation.Annotation> getAnnotations()
getAnnotations in interface AnnotatedItem<T,S>AnnotatedItem.getAnnotations()public boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotatedType)
isAnnotationPresent in interface AnnotatedItem<T,S>annotatedType - The annotation type to check for
AnnotatedItem.isAnnotationPresent(Class)protected java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.lang.annotation.Annotation> getAnnotationMap()
public boolean equals(java.lang.Object other)
equals in class java.lang.Objectother - The other item
public boolean isAssignableFrom(AnnotatedItem<?,?> that)
isAssignableFrom in interface AnnotatedItem<T,S>that - The other annotated item to check against
AnnotatedItem.isAssignableFrom(AnnotatedItem)public boolean isAssignableFrom(java.util.Set<java.lang.Class<?>> types)
isAssignableFrom in interface AnnotatedItem<T,S>types - The set of types to check against
AnnotatedItem.isAssignableFrom(Set)public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toDetailedString()
public java.util.Set<java.lang.annotation.Annotation> getBindingTypes()
getBindingTypes in interface AnnotatedItem<T,S>AnnotatedItem.getBindingTypes()public java.lang.annotation.Annotation[] getBindingTypesAsArray()
getBindingTypesAsArray in interface AnnotatedItem<T,S>AnnotatedItem.getBindingTypesAsArray()public boolean isProxyable()
isProxyable in interface AnnotatedItem<T,S>AnnotatedItem.isProxyable()protected abstract S getDelegate()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||