org.jboss.weld.introspector
Class ForwardingAnnotated<T,S>

java.lang.Object
  extended by org.jboss.weld.introspector.ForwardingAnnotated<T,S>
Type Parameters:
T - the base type
S - the annotated element type
All Implemented Interfaces:
javax.enterprise.inject.spi.Annotated
Direct Known Subclasses:
ForwardingWeldAnnotated

public abstract class ForwardingAnnotated<T,S>
extends java.lang.Object
implements javax.enterprise.inject.spi.Annotated

Base class to allow implementation of the decorator pattern

Author:
Pete Muir

Constructor Summary
ForwardingAnnotated()
           
 
Method Summary
protected abstract  javax.enterprise.inject.spi.Annotated delegate()
           
 boolean equals(java.lang.Object obj)
           
<A extends java.lang.annotation.Annotation>
A
getAnnotation(java.lang.Class<A> annotationType)
           
 java.util.Set<java.lang.annotation.Annotation> getAnnotations()
           
 java.lang.reflect.Type getBaseType()
           
 java.util.Set<java.lang.reflect.Type> getTypeClosure()
           
 int hashCode()
           
 boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ForwardingAnnotated

public ForwardingAnnotated()
Method Detail

delegate

protected abstract javax.enterprise.inject.spi.Annotated delegate()

getAnnotation

public <A extends java.lang.annotation.Annotation> A getAnnotation(java.lang.Class<A> annotationType)
Specified by:
getAnnotation in interface javax.enterprise.inject.spi.Annotated

getAnnotations

public java.util.Set<java.lang.annotation.Annotation> getAnnotations()
Specified by:
getAnnotations in interface javax.enterprise.inject.spi.Annotated

isAnnotationPresent

public boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Specified by:
isAnnotationPresent in interface javax.enterprise.inject.spi.Annotated

getBaseType

public java.lang.reflect.Type getBaseType()
Specified by:
getBaseType in interface javax.enterprise.inject.spi.Annotated

getTypeClosure

public java.util.Set<java.lang.reflect.Type> getTypeClosure()
Specified by:
getTypeClosure in interface javax.enterprise.inject.spi.Annotated

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.