org.jboss.weld.introspector
Class ForwardingWeldAnnotated<T,S>

java.lang.Object
  extended by org.jboss.weld.introspector.ForwardingAnnotated<T,S>
      extended by org.jboss.weld.introspector.ForwardingWeldAnnotated<T,S>
Type Parameters:
T -
S -
All Implemented Interfaces:
javax.enterprise.inject.spi.Annotated, WeldAnnotated<T,S>
Direct Known Subclasses:
ForwardingWeldClass, ForwardingWeldMember, ForwardingWeldParameter

public abstract class ForwardingWeldAnnotated<T,S>
extends ForwardingAnnotated<T,S>
implements WeldAnnotated<T,S>

Provides an abstraction for delegating access to an annotated item

Author:
Pete Muir

Field Summary
 
Fields inherited from interface org.jboss.weld.introspector.WeldAnnotated
MAPPED_METAANNOTATIONS
 
Constructor Summary
ForwardingWeldAnnotated()
           
 
Method Summary
protected abstract  WeldAnnotated<T,S> delegate()
           
 java.lang.reflect.Type[] getActualTypeArguments()
          Gets the actual type arguments for any parameterized types that this AnnotatedItem represents.
 java.lang.annotation.Annotation[] getBindingsAsArray()
          Deprecated. 
 java.util.Set<java.lang.annotation.Annotation> getDeclaredMetaAnnotations(java.lang.Class<? extends java.lang.annotation.Annotation> metaAnnotationType)
          Gets all annotations which are declared on this annotated item with the given meta annotation type
 java.util.Set<java.lang.reflect.Type> getInterfaceOnlyFlattenedTypeHierarchy()
          Get the type hierarchy of any interfaces implemented by this class.
 java.lang.Class<T> getJavaClass()
          Gets the type of the element
 java.util.Set<java.lang.annotation.Annotation> getMetaAnnotations(java.lang.Class<? extends java.lang.annotation.Annotation> metaAnnotationType)
          Gets all annotations which are annotated with the given meta annotation type
 java.lang.annotation.Annotation[] getMetaAnnotationsAsArray(java.lang.Class<? extends java.lang.annotation.Annotation> metaAnnotationType)
          Gets all annotations which are annotated with the given meta annotation type
 java.lang.String getName()
          Gets the name of this AnnotatedItem If it is not possible to determine the name of the underling element, a IllegalArgumentException is thrown
 java.lang.Package getPackage()
           
 java.util.Set<java.lang.annotation.Annotation> getQualifiers()
          Deprecated. 
 boolean isDeclaredAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
          Indicates if an annotation type specified is present
 boolean isFinal()
          Indicates if this AnnotatedItem represents a final element
 boolean isPackagePrivate()
           
 boolean isParameterizedType()
           
 boolean isPrivate()
           
 boolean isProxyable()
          Indicates if this AnnotatedItem can be proxyed
 boolean isPublic()
          Indicates if this annotated item is public
 boolean isStatic()
          Indicates if this AnnotatedItem represents a static element
 
Methods inherited from class org.jboss.weld.introspector.ForwardingAnnotated
equals, getAnnotation, getAnnotations, getBaseType, getTypeClosure, hashCode, isAnnotationPresent, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.enterprise.inject.spi.Annotated
getAnnotation, getAnnotations, getBaseType, getTypeClosure, isAnnotationPresent
 

Constructor Detail

ForwardingWeldAnnotated

public ForwardingWeldAnnotated()
Method Detail

getActualTypeArguments

public java.lang.reflect.Type[] getActualTypeArguments()
Description copied from interface: WeldAnnotated
Gets the actual type arguments for any parameterized types that this AnnotatedItem represents.

Specified by:
getActualTypeArguments in interface WeldAnnotated<T,S>
Returns:
An array of type arguments

getMetaAnnotations

public java.util.Set<java.lang.annotation.Annotation> getMetaAnnotations(java.lang.Class<? extends java.lang.annotation.Annotation> metaAnnotationType)
Description copied from interface: WeldAnnotated
Gets all annotations which are annotated with the given meta annotation type

Specified by:
getMetaAnnotations in interface WeldAnnotated<T,S>
Returns:
A set of matching meta-annotations. Returns an empty set if there are no matches.

getMetaAnnotationsAsArray

public java.lang.annotation.Annotation[] getMetaAnnotationsAsArray(java.lang.Class<? extends java.lang.annotation.Annotation> metaAnnotationType)
Description copied from interface: WeldAnnotated
Gets all annotations which are annotated with the given meta annotation type

Specified by:
getMetaAnnotationsAsArray in interface WeldAnnotated<T,S>
Returns:
An array of matching meta-annotations. Returns an empty array if there are no matches.

getQualifiers

@Deprecated
public java.util.Set<java.lang.annotation.Annotation> getQualifiers()
Deprecated. 

Description copied from interface: WeldAnnotated
Gets the binding types for this element

Specified by:
getQualifiers in interface WeldAnnotated<T,S>

getBindingsAsArray

@Deprecated
public java.lang.annotation.Annotation[] getBindingsAsArray()
Deprecated. 

Description copied from interface: WeldAnnotated
Gets the binding types for this element

Specified by:
getBindingsAsArray in interface WeldAnnotated<T,S>

getDeclaredMetaAnnotations

public java.util.Set<java.lang.annotation.Annotation> getDeclaredMetaAnnotations(java.lang.Class<? extends java.lang.annotation.Annotation> metaAnnotationType)
Description copied from interface: WeldAnnotated
Gets all annotations which are declared on this annotated item with the given meta annotation type

Specified by:
getDeclaredMetaAnnotations in interface WeldAnnotated<T,S>
Returns:
A set of matching meta-annotations. Returns an empty set if there are no matches.

getName

public java.lang.String getName()
Description copied from interface: WeldAnnotated
Gets the name of this AnnotatedItem If it is not possible to determine the name of the underling element, a IllegalArgumentException is thrown

Specified by:
getName in interface WeldAnnotated<T,S>
Returns:
The name

getJavaClass

public java.lang.Class<T> getJavaClass()
Description copied from interface: WeldAnnotated
Gets the type of the element

Specified by:
getJavaClass in interface WeldAnnotated<T,S>
Returns:
The type of the element

isFinal

public boolean isFinal()
Description copied from interface: WeldAnnotated
Indicates if this AnnotatedItem represents a final element

Specified by:
isFinal in interface WeldAnnotated<T,S>
Returns:
True if final, false otherwise

isStatic

public boolean isStatic()
Description copied from interface: WeldAnnotated
Indicates if this AnnotatedItem represents a static element

Specified by:
isStatic in interface WeldAnnotated<T,S>
Returns:
True if static, false otherwise

isProxyable

public boolean isProxyable()
Description copied from interface: WeldAnnotated
Indicates if this AnnotatedItem can be proxyed

Specified by:
isProxyable in interface WeldAnnotated<T,S>
Returns:
True if proxyable, false otherwise

isPublic

public boolean isPublic()
Description copied from interface: WeldAnnotated
Indicates if this annotated item is public

Specified by:
isPublic in interface WeldAnnotated<T,S>
Returns:
if public, returns true

isPrivate

public boolean isPrivate()
Specified by:
isPrivate in interface WeldAnnotated<T,S>

isPackagePrivate

public boolean isPackagePrivate()
Specified by:
isPackagePrivate in interface WeldAnnotated<T,S>

getPackage

public java.lang.Package getPackage()
Specified by:
getPackage in interface WeldAnnotated<T,S>

delegate

protected abstract WeldAnnotated<T,S> delegate()
Specified by:
delegate in class ForwardingAnnotated<T,S>

isDeclaredAnnotationPresent

public boolean isDeclaredAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Description copied from interface: WeldAnnotated
Indicates if an annotation type specified is present

Specified by:
isDeclaredAnnotationPresent in interface WeldAnnotated<T,S>
Parameters:
annotationType - The annotation to match
Returns:
True if present, false if not

getInterfaceOnlyFlattenedTypeHierarchy

public java.util.Set<java.lang.reflect.Type> getInterfaceOnlyFlattenedTypeHierarchy()
Description copied from interface: WeldAnnotated
Get the type hierarchy of any interfaces implemented by this class. Interface hierarchies from super classes are not included. The returned types should have any type parameters resolved to their actual types.

Specified by:
getInterfaceOnlyFlattenedTypeHierarchy in interface WeldAnnotated<T,S>
Returns:
the type hierarchy

isParameterizedType

public boolean isParameterizedType()
Specified by:
isParameterizedType in interface WeldAnnotated<T,S>


Copyright © 2008-2009 Seam Framework. All Rights Reserved.