org.jboss.weld.resolution
Interface Resolvable

All Known Subinterfaces:
InterceptorResolvable
All Known Implementing Classes:
ForwardingInterceptorResolvable, ForwardingResolvable, ResolvableBuilder.ResolvableImpl

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 Annotation>
A
getAnnotation(Class<A> annotationType)
          Get the instance of the Annotation
 javax.enterprise.inject.spi.Bean<?> getDeclaringBean()
          Get the declaring the injection point, or null if there is none
 Class<?> getJavaClass()
          Get the underlying java class used to generate this resolvable, or null if no java class was used
 Set<QualifierInstance> getQualifiers()
          Get the bindings to use for resolution.
 Set<Type> getTypes()
          The types that this resolvable may be assigned to
 boolean isAnnotationPresent(Class<? extends Annotation> annotationType)
          Check if an annotation is present
 boolean isAssignableTo(Class<?> clazz)
          Check if this resolvable's type closure includes the clazz passed as an argument
 

Method Detail

getQualifiers

Set<QualifierInstance> getQualifiers()
Get the bindings to use for resolution. @Default will be returned if no bindings were specified

Returns:
the bindings

isAnnotationPresent

boolean isAnnotationPresent(Class<? extends 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 Annotation> A getAnnotation(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(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

getTypes

Set<Type> getTypes()
The types that this resolvable may be assigned to

Returns:

getJavaClass

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

javax.enterprise.inject.spi.Bean<?> getDeclaringBean()
Get the declaring the injection point, or null if there is none

Returns:


Copyright © 2013 Seam Framework. All Rights Reserved.