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 void
clear()
Clear up cached content to save memory.boolean
equals(Object obj)
protected AnnotatedElement
getAnnotatedElement()
<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()
AnnotatedTypeIdentifier
getIdentifier()
Class<X>
getJavaClass()
Set<jakarta.enterprise.inject.spi.AnnotatedMethod<? super X>>
getMethods()
ReflectionCache
getReflectionCache()
int
hashCode()
protected LazyValueHolder<Set<Type>>
initTypeClosure(Type baseType, SharedObjectCache cache)
boolean
isAnnotationPresent(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)
String
toString()
-
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:
initTypeClosure
in classBackedAnnotated
-
getAnnotatedElement
protected AnnotatedElement getAnnotatedElement()
- Specified by:
getAnnotatedElement
in classBackedAnnotated
-
getJavaClass
public Class<X> getJavaClass()
- Specified by:
getJavaClass
in interfacejakarta.enterprise.inject.spi.AnnotatedType<X>
-
getConstructors
public Set<jakarta.enterprise.inject.spi.AnnotatedConstructor<X>> getConstructors()
- Specified by:
getConstructors
in interfacejakarta.enterprise.inject.spi.AnnotatedType<X>
-
getMethods
public Set<jakarta.enterprise.inject.spi.AnnotatedMethod<? super X>> getMethods()
- Specified by:
getMethods
in interfacejakarta.enterprise.inject.spi.AnnotatedType<X>
-
getFields
public Set<jakarta.enterprise.inject.spi.AnnotatedField<? super X>> getFields()
- Specified by:
getFields
in interfacejakarta.enterprise.inject.spi.AnnotatedType<X>
-
getAnnotation
public <T extends Annotation> T getAnnotation(Class<T> annotationType)
- Specified by:
getAnnotation
in interfacejakarta.enterprise.inject.spi.Annotated
-
isAnnotationPresent
public boolean isAnnotationPresent(Class<? extends Annotation> annotationType)
- Specified by:
isAnnotationPresent
in interfacejakarta.enterprise.inject.spi.Annotated
-
getAnnotations
public Set<Annotation> getAnnotations()
- Specified by:
getAnnotations
in interfacejakarta.enterprise.inject.spi.Annotated
- Overrides:
getAnnotations
in classBackedAnnotated
-
clear
public void clear()
Description copied from interface:SlimAnnotatedType
Clear up cached content to save memory. Called after bootstrap is complete.- Specified by:
clear
in interfaceSlimAnnotatedType<X>
-
getReflectionCache
public ReflectionCache getReflectionCache()
- Specified by:
getReflectionCache
in classBackedAnnotated
-
getIdentifier
public AnnotatedTypeIdentifier getIdentifier()
- Specified by:
getIdentifier
in interfaceIdentified<X>
-
-