org.jboss.weld.resolution
Class ResolvableBuilder.ResolvableImpl

java.lang.Object
  extended by org.jboss.weld.resolution.ResolvableBuilder.ResolvableImpl
All Implemented Interfaces:
Resolvable
Enclosing class:
ResolvableBuilder

protected static class ResolvableBuilder.ResolvableImpl
extends Object
implements Resolvable


Constructor Summary
protected ResolvableBuilder.ResolvableImpl(Class<?> rawType, Set<Type> typeClosure, Map<Class<? extends Annotation>,Annotation> mappedQualifiers, javax.enterprise.inject.spi.Bean<?> declaringBean, Set<QualifierInstance> qualifierInstances)
           
 
Method Summary
 boolean equals(Object o)
           
<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
 int hashCode()
           
 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
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResolvableBuilder.ResolvableImpl

protected ResolvableBuilder.ResolvableImpl(Class<?> rawType,
                                           Set<Type> typeClosure,
                                           Map<Class<? extends Annotation>,Annotation> mappedQualifiers,
                                           javax.enterprise.inject.spi.Bean<?> declaringBean,
                                           Set<QualifierInstance> qualifierInstances)
Method Detail

getQualifiers

public Set<QualifierInstance> getQualifiers()
Description copied from interface: Resolvable
Get the bindings to use for resolution. @Default will be returned if no bindings were specified

Specified by:
getQualifiers in interface Resolvable
Returns:
the bindings

isAnnotationPresent

public boolean isAnnotationPresent(Class<? extends Annotation> annotationType)
Description copied from interface: Resolvable
Check if an annotation is present

Specified by:
isAnnotationPresent in interface Resolvable
Parameters:
annotationType - the annotation type to look for
Returns:
true if it is present

getTypes

public Set<Type> getTypes()
Description copied from interface: Resolvable
The types that this resolvable may be assigned to

Specified by:
getTypes in interface Resolvable
Returns:

isAssignableTo

public boolean isAssignableTo(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

getAnnotation

public <A extends Annotation> A getAnnotation(Class<A> annotationType)
Description copied from interface: Resolvable
Get the instance of the Annotation

Specified by:
getAnnotation in interface Resolvable
Type Parameters:
A - the type of the annotation
Parameters:
annotationType - the type of the annotation
Returns:
the annotation instance

getJavaClass

public Class<?> getJavaClass()
Description copied from interface: Resolvable
Get the underlying java class used to generate this resolvable, or null if no java class was used

Specified by:
getJavaClass in interface Resolvable
Returns:
the java class

getDeclaringBean

public javax.enterprise.inject.spi.Bean<?> 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:

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object


Copyright © 2013 Seam Framework. All Rights Reserved.