Package org.apache.webbeans.portable
Class AbstractAnnotated
- java.lang.Object
-
- org.apache.webbeans.portable.AbstractAnnotated
-
- All Implemented Interfaces:
jakarta.enterprise.inject.spi.Annotated
- Direct Known Subclasses:
AbstractAnnotatedCallable,AnnotatedFieldImpl,AnnotatedParameterImpl,AnnotatedTypeImpl
public abstract class AbstractAnnotated extends Object implements jakarta.enterprise.inject.spi.Annotated
Abstract implementation of theAnnotatedcontract.- Version:
- $Rev$ $Date$
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractAnnotated(WebBeansContext webBeansContext, jakarta.enterprise.inject.spi.Annotated annotated)Copy consturctorprotectedAbstractAnnotated(WebBeansContext webBeansContext, Type baseType)Creates a new annotated element.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddAnnotation(Annotation annotation)Adds new annotation to set.protected voidbuildRepeatableAnnotations(Set<Annotation> annotations)voidclearAnnotations()protected Set<Type>extractTypeClojure(Type baseType)<T extends Annotation>
TgetAnnotation(Class<T> annotationType)Set<Annotation>getAnnotations()TypegetBaseType()protected abstract Class<?>getDeclaringClass()protected abstract Class<?>getOwningClass()Set<Class<?>>getRepeatables()Set<Type>getTypeClosure()protected WebBeansContextgetWebBeansContext()booleanisAnnotationPresent(Class<? extends Annotation> annotationType)protected voidsetAnnotations(Annotation[] annotations)Adds new annotation to set.StringtoString()
-
-
-
Constructor Detail
-
AbstractAnnotated
protected AbstractAnnotated(WebBeansContext webBeansContext, Type baseType)
Creates a new annotated element.- Parameters:
webBeansContext- our WebBeansContextbaseType- annotated element type
-
AbstractAnnotated
protected AbstractAnnotated(WebBeansContext webBeansContext, jakarta.enterprise.inject.spi.Annotated annotated)
Copy consturctor- Parameters:
webBeansContext- currentWebBeansContextannotated- to copy
-
-
Method Detail
-
buildRepeatableAnnotations
protected void buildRepeatableAnnotations(Set<Annotation> annotations)
-
addAnnotation
public void addAnnotation(Annotation annotation)
Adds new annotation to set.- Parameters:
annotation- new annotation
-
getWebBeansContext
protected WebBeansContext getWebBeansContext()
-
setAnnotations
protected void setAnnotations(Annotation[] annotations)
Adds new annotation to set.- Parameters:
annotations- new annotations
-
clearAnnotations
public void clearAnnotations()
-
getAnnotation
public <T extends Annotation> T getAnnotation(Class<T> annotationType)
- Specified by:
getAnnotationin interfacejakarta.enterprise.inject.spi.Annotated
-
getAnnotations
public Set<Annotation> getAnnotations()
- Specified by:
getAnnotationsin interfacejakarta.enterprise.inject.spi.Annotated
-
getBaseType
public Type getBaseType()
- Specified by:
getBaseTypein interfacejakarta.enterprise.inject.spi.Annotated
-
getTypeClosure
public Set<Type> getTypeClosure()
- Specified by:
getTypeClosurein interfacejakarta.enterprise.inject.spi.Annotated
-
getOwningClass
protected abstract Class<?> getOwningClass()
-
getDeclaringClass
protected abstract Class<?> getDeclaringClass()
-
isAnnotationPresent
public boolean isAnnotationPresent(Class<? extends Annotation> annotationType)
- Specified by:
isAnnotationPresentin interfacejakarta.enterprise.inject.spi.Annotated
-
-