Class FaultToleranceExtension.AnnotatedTypeWrapper<T>

  • Type Parameters:
    T - Underlying type.
    All Implemented Interfaces:
    javax.enterprise.inject.spi.Annotated, javax.enterprise.inject.spi.AnnotatedType<T>
    Enclosing class:
    FaultToleranceExtension

    public static class FaultToleranceExtension.AnnotatedTypeWrapper<T>
    extends Object
    implements javax.enterprise.inject.spi.AnnotatedType<T>
    Wraps an annotated type for the purpose of adding and/or overriding some annotations.
    • Constructor Detail

      • AnnotatedTypeWrapper

        public AnnotatedTypeWrapper​(javax.enterprise.inject.spi.AnnotatedType<T> delegate,
                                    Annotation... annotations)
        Constructor.
        Parameters:
        delegate - Wrapped annotated type.
        annotations - New set of annotations possibly overriding existing ones.
    • Method Detail

      • getJavaClass

        public Class<T> getJavaClass()
        Specified by:
        getJavaClass in interface javax.enterprise.inject.spi.AnnotatedType<T>
      • 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
      • getConstructors

        public Set<javax.enterprise.inject.spi.AnnotatedConstructor<T>> getConstructors()
        Specified by:
        getConstructors in interface javax.enterprise.inject.spi.AnnotatedType<T>
      • getMethods

        public Set<javax.enterprise.inject.spi.AnnotatedMethod<? super T>> getMethods()
        Specified by:
        getMethods in interface javax.enterprise.inject.spi.AnnotatedType<T>
      • getFields

        public Set<javax.enterprise.inject.spi.AnnotatedField<? super T>> getFields()
        Specified by:
        getFields in interface javax.enterprise.inject.spi.AnnotatedType<T>
      • getAnnotation

        public <R extends Annotation> R getAnnotation​(Class<R> annotationType)
        Specified by:
        getAnnotation in interface javax.enterprise.inject.spi.Annotated
      • getAnnotations

        public <T extends AnnotationSet<T> getAnnotations​(Class<T> annotationType)
        Specified by:
        getAnnotations in interface javax.enterprise.inject.spi.Annotated
        Specified by:
        getAnnotations in interface javax.enterprise.inject.spi.AnnotatedType<T>
      • getAnnotations

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

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