org.jboss.weld.resolution
Interface Resolvable

All Known Subinterfaces:
InterceptorResolvable
All Known Implementing Classes:
ForwardingResolvable, ResolvableWeldClass

public interface Resolvable

Something that is resovable by the resolver. A resolvable is defined by it's bindings and type closure

Author:
pmuir

Method Summary
<A extends java.lang.annotation.Annotation>
A
getAnnotation(java.lang.Class<A> annotationType)
          Get the instance of the Annotation
 AbstractClassBean<?> getDeclaringBean()
          Get the declaring the injection point, or null if there is none
 java.lang.Class<?> getJavaClass()
          Get the underlying java class used to generate this resolvable, or null if no java class was used
 java.util.Set<java.lang.annotation.Annotation> getQualifiers()
          Get the bindings to use for resolution.
 java.util.Set<java.lang.reflect.Type> getTypeClosure()
          The type closure of this resolvable
 boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
          Check if an annotation is present
 boolean isAssignableTo(java.lang.Class<?> clazz)
          Check if this resolvable's type closure includes the clazz passed as an argument
 

Method Detail

getQualifiers

java.util.Set<java.lang.annotation.Annotation> getQualifiers()
Get the bindings to use for resolution. @Current will be returned if no bindings were specified

Returns:
the bindings

isAnnotationPresent

boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Check if an annotation is present

Parameters:
annotationType - the annotation type to look for
Returns:
true if it is present

getAnnotation

<A extends java.lang.annotation.Annotation> A getAnnotation(java.lang.Class<A> annotationType)
Get the instance of the Annotation

Type Parameters:
A - the type of the annotation
Parameters:
annotationType - the type of the annotation
Returns:
the annotation instance

isAssignableTo

boolean isAssignableTo(java.lang.Class<?> clazz)
Check if this resolvable's type closure includes the clazz passed as an argument

Parameters:
clazz - the class to check for
Returns:
true if clazz is present

getTypeClosure

java.util.Set<java.lang.reflect.Type> getTypeClosure()
The type closure of this resolvable

Returns:

getJavaClass

java.lang.Class<?> getJavaClass()
Get the underlying java class used to generate this resolvable, or null if no java class was used

Returns:
the java class

getDeclaringBean

AbstractClassBean<?> getDeclaringBean()
Get the declaring the injection point, or null if there is none

Returns:


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