Class AbstractAnnotated

    • Constructor Detail

      • AbstractAnnotated

        protected AbstractAnnotated​(WebBeansContext webBeansContext,
                                    Type baseType)
        Creates a new annotated element.
        Parameters:
        webBeansContext - our WebBeansContext
        baseType - annotated element type
      • AbstractAnnotated

        protected AbstractAnnotated​(WebBeansContext webBeansContext,
                                    javax.enterprise.inject.spi.Annotated annotated)
        Copy consturctor
        Parameters:
        webBeansContext - current WebBeansContext
        annotated - to copy
    • Method Detail

      • buildRepeatableAnnotations

        protected void buildRepeatableAnnotations​(Set<Annotation> annotations)
      • getRepeatables

        public Set<Class<?>> getRepeatables()
      • addAnnotation

        public void addAnnotation​(Annotation annotation)
        Adds new annotation to set.
        Parameters:
        annotation - new annotation
      • 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:
        getAnnotation in interface javax.enterprise.inject.spi.Annotated
      • getAnnotations

        public Set<Annotation> getAnnotations()
        Specified by:
        getAnnotations in interface javax.enterprise.inject.spi.Annotated
      • getBaseType

        public Type getBaseType()
        Specified by:
        getBaseType in interface javax.enterprise.inject.spi.Annotated
      • getTypeClosure

        public Set<Type> getTypeClosure()
        Specified by:
        getTypeClosure in interface javax.enterprise.inject.spi.Annotated
      • getOwningClass

        protected abstract Class<?> getOwningClass()
      • getDeclaringClass

        protected abstract Class<?> getDeclaringClass()
      • extractTypeClojure

        protected Set<Type> extractTypeClojure​(Type baseType)
      • isAnnotationPresent

        public boolean isAnnotationPresent​(Class<? extends Annotation> annotationType)
        Specified by:
        isAnnotationPresent in interface javax.enterprise.inject.spi.Annotated