org.jboss.weld.resolution
Class ForwardingResolvable

java.lang.Object
  extended by org.jboss.weld.resolution.ForwardingResolvable
All Implemented Interfaces:
Resolvable

public abstract class ForwardingResolvable
extends java.lang.Object
implements Resolvable


Constructor Summary
ForwardingResolvable()
           
 
Method Summary
protected abstract  Resolvable delegate()
           
 boolean equals(java.lang.Object obj)
           
<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
 int hashCode()
           
 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
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ForwardingResolvable

public ForwardingResolvable()
Method Detail

delegate

protected abstract Resolvable delegate()

getQualifiers

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

Specified by:
getQualifiers in interface Resolvable
Returns:
the bindings

isAnnotationPresent

public boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.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

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 Resolvable
Returns:

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

getAnnotation

public <A extends java.lang.annotation.Annotation> A getAnnotation(java.lang.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 java.lang.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 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:

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


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