Class UnbackedAnnotatedType<X>
- java.lang.Object
-
- org.jboss.weld.annotated.slim.BaseAnnotated
-
- org.jboss.weld.annotated.slim.unbacked.UnbackedAnnotated
-
- org.jboss.weld.annotated.slim.unbacked.UnbackedAnnotatedType<X>
-
- Type Parameters:
X- the type
- All Implemented Interfaces:
Serializable,Annotated,AnnotatedType<X>,Identified<AnnotatedTypeIdentifier>,SlimAnnotatedType<X>
public class UnbackedAnnotatedType<X> extends UnbackedAnnotated implements SlimAnnotatedType<X>, Serializable
Wrapper for extension-providedAnnotatedType. This may seem unnecessary, however it does mean we are providing a consistent view for debugging, error reporting etc. This implementation is also serializable no matter if the original extension-providedAnnotatedTypeimplementation is.- Author:
- Pete Muir, Jozef Hartinger
- 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 static <X> UnbackedAnnotatedType<X>additionalAnnotatedType(String contextId, AnnotatedType<X> source, String bdaId, String suffix, SharedObjectCache cache)voidclear()Clear up cached content to save memory.booleanequals(Object obj)Set<AnnotatedConstructor<X>>getConstructors()Get the constructors of the type.Set<AnnotatedField<? super X>>getFields()Get the fields of the type.AnnotatedTypeIdentifiergetIdentifier()Class<X>getJavaClass()Get the underlyingClass.Set<AnnotatedMethod<? super X>>getMethods()Get the methods of the type.inthashCode()static <X> UnbackedAnnotatedType<X>modifiedAnnotatedType(SlimAnnotatedType<X> originalType, AnnotatedType<X> source, SharedObjectCache cache)StringtoString()-
Methods inherited from class org.jboss.weld.annotated.slim.unbacked.UnbackedAnnotated
getAnnotation, getAnnotations, getTypeClosure, isAnnotationPresent
-
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
-
Methods inherited from interface javax.enterprise.inject.spi.Annotated
getAnnotation, getAnnotations, getBaseType, getTypeClosure, isAnnotationPresent
-
Methods inherited from interface javax.enterprise.inject.spi.AnnotatedType
getAnnotations
-
-
-
-
Method Detail
-
additionalAnnotatedType
public static <X> UnbackedAnnotatedType<X> additionalAnnotatedType(String contextId, AnnotatedType<X> source, String bdaId, String suffix, SharedObjectCache cache)
-
modifiedAnnotatedType
public static <X> UnbackedAnnotatedType<X> modifiedAnnotatedType(SlimAnnotatedType<X> originalType, AnnotatedType<X> source, SharedObjectCache cache)
-
getJavaClass
public Class<X> getJavaClass()
Description copied from interface:AnnotatedTypeGet the underlying
Class.- Specified by:
getJavaClassin interfaceAnnotatedType<X>- Returns:
- the
Class
-
getConstructors
public Set<AnnotatedConstructor<X>> getConstructors()
Description copied from interface:AnnotatedTypeGet the constructors of the type. If an empty set is returned, a default constructor with no parameters will be assumed.
- Specified by:
getConstructorsin interfaceAnnotatedType<X>- Returns:
- the constructors, or an empty set if none are defined
-
getMethods
public Set<AnnotatedMethod<? super X>> getMethods()
Description copied from interface:AnnotatedTypeGet the methods of the type.
- Specified by:
getMethodsin interfaceAnnotatedType<X>- Returns:
- the methods, or an empty set if none are defined
-
getFields
public Set<AnnotatedField<? super X>> getFields()
Description copied from interface:AnnotatedTypeGet the fields of the type.
- Specified by:
getFieldsin interfaceAnnotatedType<X>- Returns:
- the fields, or an empty set if none are defined
-
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>
-
getIdentifier
public AnnotatedTypeIdentifier getIdentifier()
- Specified by:
getIdentifierin interfaceIdentified<X>
-
-