org.jboss.weld.introspector.jlr
Class WeldAnnotationImpl<T extends java.lang.annotation.Annotation>
java.lang.Object
org.jboss.weld.introspector.jlr.AbstractWeldAnnotated<T,java.lang.Class<T>>
org.jboss.weld.introspector.jlr.WeldClassImpl<T>
org.jboss.weld.introspector.jlr.WeldAnnotationImpl<T>
- Type Parameters:
T -
- All Implemented Interfaces:
- javax.enterprise.inject.spi.Annotated, javax.enterprise.inject.spi.AnnotatedType<T>, WeldAnnotated<T,java.lang.Class<T>>, WeldAnnotation<T>, WeldClass<T>
public class WeldAnnotationImpl<T extends java.lang.annotation.Annotation>
- extends WeldClassImpl<T>
- implements WeldAnnotation<T>
Represents an annotated annotation
This class is immutable and therefore threadsafe
- Author:
- Pete Muir
|
Constructor Summary |
protected |
WeldAnnotationImpl(java.lang.Class<T> annotationType,
java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.lang.annotation.Annotation> annotationMap,
java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.lang.annotation.Annotation> declaredAnnotationMap,
ClassTransformer classTransformer)
Constructor
Initializes the superclass with the built annotation map |
|
Method Summary |
java.lang.Class<T> |
getDelegate()
Gets the delegate (class) |
java.util.Set<WeldMethod<?,?>> |
getMembers()
Gets all members of the annotation
Initializes the members first if they are null |
java.util.Set<WeldMethod<?,?>> |
getMembers(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Returns the annotated members with a given annotation type
If the annotated members are null, they are initialized first. |
static
|
of(java.lang.Class<A> annotationType,
ClassTransformer classTransformer)
|
java.lang.String |
toString()
Gets a string representation of the annotation |
| Methods inherited from class org.jboss.weld.introspector.jlr.WeldClassImpl |
asWeldSubclass, cast, equals, getAnnotatedClass, getConstructors, getDeclaredFields, getDeclaredMetaAnnotations, getDeclaredWeldConstructor, getDeclaredWeldField, getDeclaredWeldFields, getDeclaredWeldMethod, getDeclaredWeldMethod, getDeclaredWeldMethods, getDeclaredWeldMethods, getDeclaredWeldMethodsWithAnnotatedParameters, getFields, getMethods, getName, getNoArgsWeldConstructor, getPackage, getSimpleName, getWeldConstructors, getWeldFields, getWeldFields, getWeldMethod, getWeldMethod, getWeldMethods, getWeldMethods, getWeldSuperclass, isAbstract, isAnonymousClass, isDiscovered, isEnum, isEquivalent, isFinal, isLocalClass, isMemberClass, isPackagePrivate, isPrivate, isPublic, isSerializable, isStatic, of, of, of |
| Methods inherited from class org.jboss.weld.introspector.jlr.AbstractWeldAnnotated |
addMetaAnnotations, addMetaAnnotations, buildAnnotationMap, buildAnnotationMap, getActualTypeArguments, getAnnotation, getAnnotations, getBaseType, getBindingsAsArray, getInterfaceClosure, getJavaClass, getMetaAnnotations, getQualifiers, getTypeClosure, hashCode, isAnnotationPresent, isParameterizedType, isPrimitive, isProxyable |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jboss.weld.introspector.WeldClass |
asWeldSubclass, cast, getDeclaredMetaAnnotations, getDeclaredWeldConstructor, getDeclaredWeldField, getDeclaredWeldFields, getDeclaredWeldMethod, getDeclaredWeldMethod, getDeclaredWeldMethods, getDeclaredWeldMethods, getDeclaredWeldMethodsWithAnnotatedParameters, getNoArgsWeldConstructor, getSimpleName, getWeldConstructors, getWeldFields, getWeldFields, getWeldMethod, getWeldMethod, getWeldMethods, getWeldMethods, getWeldSuperclass, isAbstract, isAnonymousClass, isDiscovered, isEnum, isEquivalent, isLocalClass, isMemberClass, isParameterizedType, isSerializable |
| Methods inherited from interface org.jboss.weld.introspector.WeldAnnotated |
getActualTypeArguments, getBindingsAsArray, getInterfaceClosure, getJavaClass, getMetaAnnotations, getName, getPackage, getQualifiers, isFinal, isPackagePrivate, isPrimitive, isPrivate, isProxyable, isPublic, isStatic |
| Methods inherited from interface javax.enterprise.inject.spi.AnnotatedType |
getConstructors, getFields, getJavaClass, getMethods |
| Methods inherited from interface javax.enterprise.inject.spi.Annotated |
getAnnotation, getAnnotations, getBaseType, getTypeClosure, isAnnotationPresent |
WeldAnnotationImpl
protected WeldAnnotationImpl(java.lang.Class<T> annotationType,
java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.lang.annotation.Annotation> annotationMap,
java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.lang.annotation.Annotation> declaredAnnotationMap,
ClassTransformer classTransformer)
- Constructor
Initializes the superclass with the built annotation map
- Parameters:
annotationType - The annotation type
of
public static <A extends java.lang.annotation.Annotation> WeldAnnotation<A> of(java.lang.Class<A> annotationType,
ClassTransformer classTransformer)
getMembers
public java.util.Set<WeldMethod<?,?>> getMembers()
- Gets all members of the annotation
Initializes the members first if they are null
- Specified by:
getMembers in interface WeldAnnotation<T extends java.lang.annotation.Annotation>
- Returns:
- The set of abstracted members
- See Also:
WeldAnnotation.getMembers()
getMembers
public java.util.Set<WeldMethod<?,?>> getMembers(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
- Returns the annotated members with a given annotation type
If the annotated members are null, they are initialized first.
- Specified by:
getMembers in interface WeldAnnotation<T extends java.lang.annotation.Annotation>
- Parameters:
annotationType - The annotation type to match
- Returns:
- The set of abstracted members with the given annotation type
present. An empty set is returned if no matches are found
- See Also:
WeldAnnotation.getMembers(Class)
toString
public java.lang.String toString()
- Gets a string representation of the annotation
- Overrides:
toString in class WeldClassImpl<T extends java.lang.annotation.Annotation>
- Returns:
- A string representation
getDelegate
public java.lang.Class<T> getDelegate()
- Description copied from class:
WeldClassImpl
- Gets the delegate (class)
- Overrides:
getDelegate in class WeldClassImpl<T extends java.lang.annotation.Annotation>
- Returns:
- The class
Copyright © 2008-2010 Seam Framework. All Rights Reserved.