org.jboss.weld.resolution
Class ResolvableWeldClass<T>

java.lang.Object
  extended by org.jboss.weld.introspector.jlr.AbstractWeldAnnotated<T,java.lang.Class<T>>
      extended by org.jboss.weld.resolution.ResolvableWeldClass<T>
All Implemented Interfaces:
javax.enterprise.inject.spi.Annotated, WeldAnnotated<T,java.lang.Class<T>>, Resolvable

public class ResolvableWeldClass<T>
extends AbstractWeldAnnotated<T,java.lang.Class<T>>
implements Resolvable


Field Summary
 
Fields inherited from interface org.jboss.weld.introspector.WeldAnnotated
MAPPED_METAANNOTATIONS
 
Method Summary
 java.lang.reflect.Type[] getActualTypeArguments()
          Gets the actual type arguments for any parameterized types that this AnnotatedItem represents.
 java.lang.reflect.Type getBaseType()
           
 AbstractClassBean<?> getDeclaringBean()
          Get the declaring the injection point, or null if there is none
 java.lang.Class<T> getDelegate()
           
 java.lang.Class<T> getJavaClass()
          Gets the type of the element
 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.reflect.Type> getTypeClosure()
          The type closure of this resolvable
 boolean isAssignableTo(java.lang.Class<?> clazz)
          Check if this resolvable's type closure includes the clazz passed as an argument
 boolean isFinal()
          Indicates if this AnnotatedItem represents a final element
 boolean isPackagePrivate()
           
 boolean isPrivate()
           
 boolean isProxyable()
          Indicates if the type is proxyable to a set of pre-defined rules
 boolean isPublic()
          Indicates if this annotated item is public
 boolean isStatic()
          Indicates if this AnnotatedItem represents a static element
static
<T> WeldAnnotated<T,java.lang.Class<T>>
of(javax.enterprise.inject.spi.InjectionPoint injectionPoint, BeanManagerImpl manager)
           
static
<T> WeldAnnotated<T,java.lang.Class<T>>
of(java.lang.reflect.Member member, java.lang.annotation.Annotation[] annotations, BeanManagerImpl manager)
           
static
<T> WeldAnnotated<T,java.lang.Class<T>>
of(java.lang.reflect.Type type, java.lang.annotation.Annotation[] annotations, BeanManagerImpl manager)
           
static
<T> WeldAnnotated<T,java.lang.Class<T>>
of(javax.enterprise.inject.TypeLiteral<T> typeLiteral, java.lang.annotation.Annotation[] annotations, BeanManagerImpl manager)
           
 java.lang.String toString()
          Gets a string representation of the item
 
Methods inherited from class org.jboss.weld.introspector.jlr.AbstractWeldAnnotated
equals, getAnnotation, getAnnotations, getAnnotationStore, getBindingsAsArray, getDeclaredMetaAnnotations, getInterfaceOnlyFlattenedTypeHierarchy, getMetaAnnotations, getMetaAnnotationsAsArray, getQualifiers, hashCode, isAnnotationPresent, isDeclaredAnnotationPresent, isParameterizedType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jboss.weld.resolution.Resolvable
getAnnotation, getQualifiers, isAnnotationPresent
 

Method Detail

of

public static <T> WeldAnnotated<T,java.lang.Class<T>> of(javax.enterprise.inject.TypeLiteral<T> typeLiteral,
                                                         java.lang.annotation.Annotation[] annotations,
                                                         BeanManagerImpl manager)

of

public static <T> WeldAnnotated<T,java.lang.Class<T>> of(java.lang.reflect.Type type,
                                                         java.lang.annotation.Annotation[] annotations,
                                                         BeanManagerImpl manager)

of

public static <T> WeldAnnotated<T,java.lang.Class<T>> of(javax.enterprise.inject.spi.InjectionPoint injectionPoint,
                                                         BeanManagerImpl manager)

of

public static <T> WeldAnnotated<T,java.lang.Class<T>> of(java.lang.reflect.Member member,
                                                         java.lang.annotation.Annotation[] annotations,
                                                         BeanManagerImpl manager)

toString

public java.lang.String toString()
Description copied from class: AbstractWeldAnnotated
Gets a string representation of the item

Overrides:
toString in class AbstractWeldAnnotated<T,java.lang.Class<T>>
Returns:
A string representation

getDelegate

public java.lang.Class<T> getDelegate()
Specified by:
getDelegate in class AbstractWeldAnnotated<T,java.lang.Class<T>>

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,java.lang.Class<T>>
Overrides:
getActualTypeArguments in class AbstractWeldAnnotated<T,java.lang.Class<T>>
Returns:
An array of type arguments

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,java.lang.Class<T>>
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,java.lang.Class<T>>
Specified by:
getJavaClass in interface Resolvable
Overrides:
getJavaClass in class AbstractWeldAnnotated<T,java.lang.Class<T>>
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,java.lang.Class<T>>
Returns:
True if final, 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,java.lang.Class<T>>
Returns:
if public, returns true

isPrivate

public boolean isPrivate()
Specified by:
isPrivate in interface WeldAnnotated<T,java.lang.Class<T>>

isPackagePrivate

public boolean isPackagePrivate()
Specified by:
isPackagePrivate in interface WeldAnnotated<T,java.lang.Class<T>>

getPackage

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

isStatic

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

Specified by:
isStatic in interface WeldAnnotated<T,java.lang.Class<T>>
Returns:
True if static, false otherwise

isProxyable

public boolean isProxyable()
Description copied from class: AbstractWeldAnnotated
Indicates if the type is proxyable to a set of pre-defined rules

Specified by:
isProxyable in interface WeldAnnotated<T,java.lang.Class<T>>
Overrides:
isProxyable in class AbstractWeldAnnotated<T,java.lang.Class<T>>
Returns:
True if proxyable, false otherwise.
See Also:
WeldAnnotated.isProxyable()

getTypeClosure

public java.util.Set<java.lang.reflect.Type> getTypeClosure()
Description copied from interface: Resolvable
The type closure of this resolvable

Specified by:
getTypeClosure in interface javax.enterprise.inject.spi.Annotated
Specified by:
getTypeClosure in interface Resolvable
Overrides:
getTypeClosure in class AbstractWeldAnnotated<T,java.lang.Class<T>>

getDeclaringBean

public AbstractClassBean<?> getDeclaringBean()
Description copied from interface: Resolvable
Get the declaring the injection point, or null if there is none

Specified by:
getDeclaringBean in interface Resolvable
Returns:

getBaseType

public java.lang.reflect.Type getBaseType()
Specified by:
getBaseType in interface javax.enterprise.inject.spi.Annotated
Overrides:
getBaseType in class AbstractWeldAnnotated<T,java.lang.Class<T>>

isAssignableTo

public boolean isAssignableTo(java.lang.Class<?> clazz)
Description copied from interface: Resolvable
Check if this resolvable's type closure includes the clazz passed as an argument

Specified by:
isAssignableTo in interface Resolvable
Parameters:
clazz - the class to check for
Returns:
true if clazz is present


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