Class BackedAnnotatedType<X>
- java.lang.Object
-
- org.jboss.weld.annotated.slim.BaseAnnotated
-
- org.jboss.weld.annotated.slim.backed.BackedAnnotated
-
- org.jboss.weld.annotated.slim.backed.BackedAnnotatedType<X>
-
- All Implemented Interfaces:
jakarta.enterprise.inject.spi.Annotated,jakarta.enterprise.inject.spi.AnnotatedType<X>,Serializable,Identified<AnnotatedTypeIdentifier>,SlimAnnotatedType<X>
public class BackedAnnotatedType<X> extends BackedAnnotated implements SlimAnnotatedType<X>, Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jboss.weld.annotated.slim.SlimAnnotatedType
SlimAnnotatedType.SerializationProxy<X>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Clear up cached content to save memory.booleanequals(Object obj)protected AnnotatedElementgetAnnotatedElement()<T extends Annotation>
TgetAnnotation(Class<T> annotationType)Set<Annotation>getAnnotations()Set<jakarta.enterprise.inject.spi.AnnotatedConstructor<X>>getConstructors()Set<jakarta.enterprise.inject.spi.AnnotatedField<? super X>>getFields()AnnotatedTypeIdentifiergetIdentifier()Class<X>getJavaClass()Set<jakarta.enterprise.inject.spi.AnnotatedMethod<? super X>>getMethods()ReflectionCachegetReflectionCache()inthashCode()protected LazyValueHolder<Set<Type>>initTypeClosure(Type baseType, SharedObjectCache cache)booleanisAnnotationPresent(Class<? extends Annotation> annotationType)static <X> BackedAnnotatedType<X>of(Class<X> javaClass, Type baseType, SharedObjectCache sharedObjectCache, ReflectionCache reflectionCache, String contextId, String bdaId)static <X> BackedAnnotatedType<X>of(Class<X> javaClass, Type baseType, SharedObjectCache sharedObjectCache, ReflectionCache reflectionCache, String contextId, String bdaId, String suffix)static <X> BackedAnnotatedType<X>of(Class<X> javaClass, SharedObjectCache sharedObjectCache, ReflectionCache reflectionCache, String contextId, String bdaId)StringtoString()-
Methods inherited from class org.jboss.weld.annotated.slim.backed.BackedAnnotated
getTypeClosure
-
Methods inherited from class org.jboss.weld.annotated.slim.BaseAnnotated
getBaseType
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
of
public static <X> BackedAnnotatedType<X> of(Class<X> javaClass, SharedObjectCache sharedObjectCache, ReflectionCache reflectionCache, String contextId, String bdaId)
-
of
public static <X> BackedAnnotatedType<X> of(Class<X> javaClass, Type baseType, SharedObjectCache sharedObjectCache, ReflectionCache reflectionCache, String contextId, String bdaId)
-
of
public static <X> BackedAnnotatedType<X> of(Class<X> javaClass, Type baseType, SharedObjectCache sharedObjectCache, ReflectionCache reflectionCache, String contextId, String bdaId, String suffix)
-
initTypeClosure
protected LazyValueHolder<Set<Type>> initTypeClosure(Type baseType, SharedObjectCache cache)
- Overrides:
initTypeClosurein classBackedAnnotated
-
getAnnotatedElement
protected AnnotatedElement getAnnotatedElement()
- Specified by:
getAnnotatedElementin classBackedAnnotated
-
getJavaClass
public Class<X> getJavaClass()
- Specified by:
getJavaClassin interfacejakarta.enterprise.inject.spi.AnnotatedType<X>
-
getConstructors
public Set<jakarta.enterprise.inject.spi.AnnotatedConstructor<X>> getConstructors()
- Specified by:
getConstructorsin interfacejakarta.enterprise.inject.spi.AnnotatedType<X>
-
getMethods
public Set<jakarta.enterprise.inject.spi.AnnotatedMethod<? super X>> getMethods()
- Specified by:
getMethodsin interfacejakarta.enterprise.inject.spi.AnnotatedType<X>
-
getFields
public Set<jakarta.enterprise.inject.spi.AnnotatedField<? super X>> getFields()
- Specified by:
getFieldsin interfacejakarta.enterprise.inject.spi.AnnotatedType<X>
-
getAnnotation
public <T extends Annotation> T getAnnotation(Class<T> annotationType)
- Specified by:
getAnnotationin interfacejakarta.enterprise.inject.spi.Annotated
-
isAnnotationPresent
public boolean isAnnotationPresent(Class<? extends Annotation> annotationType)
- Specified by:
isAnnotationPresentin interfacejakarta.enterprise.inject.spi.Annotated
-
getAnnotations
public Set<Annotation> getAnnotations()
- Specified by:
getAnnotationsin interfacejakarta.enterprise.inject.spi.Annotated- Overrides:
getAnnotationsin classBackedAnnotated
-
clear
public void clear()
Description copied from interface:SlimAnnotatedTypeClear up cached content to save memory. Called after bootstrap is complete.- Specified by:
clearin interfaceSlimAnnotatedType<X>
-
getReflectionCache
public ReflectionCache getReflectionCache()
- Specified by:
getReflectionCachein classBackedAnnotated
-
getIdentifier
public AnnotatedTypeIdentifier getIdentifier()
- Specified by:
getIdentifierin interfaceIdentified<X>
-
-