Class FaultToleranceExtension.AnnotatedTypeWrapper<T>
- java.lang.Object
-
- io.helidon.microprofile.faulttolerance.FaultToleranceExtension.AnnotatedTypeWrapper<T>
-
- Type Parameters:
T- Underlying type.
- All Implemented Interfaces:
Annotated,AnnotatedType<T>
- Enclosing class:
- FaultToleranceExtension
public static class FaultToleranceExtension.AnnotatedTypeWrapper<T> extends Object implements AnnotatedType<T>
Wraps an annotated type for the purpose of adding and/or overriding some annotations.
-
-
Constructor Summary
Constructors Constructor Description AnnotatedTypeWrapper(AnnotatedType<T> delegate, Annotation... annotations)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R extends Annotation>
RgetAnnotation(Class<R> annotationType)Set<Annotation>getAnnotations()<T extends Annotation>
Set<T>getAnnotations(Class<T> annotationType)TypegetBaseType()Set<AnnotatedConstructor<T>>getConstructors()Set<AnnotatedField<? super T>>getFields()Class<T>getJavaClass()Set<AnnotatedMethod<? super T>>getMethods()Set<Type>getTypeClosure()booleanisAnnotationPresent(Class<? extends Annotation> annotationType)
-
-
-
Constructor Detail
-
AnnotatedTypeWrapper
public AnnotatedTypeWrapper(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:
getJavaClassin interfaceAnnotatedType<T>
-
getBaseType
public Type getBaseType()
- Specified by:
getBaseTypein interfaceAnnotated
-
getTypeClosure
public Set<Type> getTypeClosure()
- Specified by:
getTypeClosurein interfaceAnnotated
-
getConstructors
public Set<AnnotatedConstructor<T>> getConstructors()
- Specified by:
getConstructorsin interfaceAnnotatedType<T>
-
getMethods
public Set<AnnotatedMethod<? super T>> getMethods()
- Specified by:
getMethodsin interfaceAnnotatedType<T>
-
getFields
public Set<AnnotatedField<? super T>> getFields()
- Specified by:
getFieldsin interfaceAnnotatedType<T>
-
getAnnotation
public <R extends Annotation> R getAnnotation(Class<R> annotationType)
- Specified by:
getAnnotationin interfaceAnnotated
-
getAnnotations
public <T extends Annotation> Set<T> getAnnotations(Class<T> annotationType)
- Specified by:
getAnnotationsin interfaceAnnotated- Specified by:
getAnnotationsin interfaceAnnotatedType<T>
-
getAnnotations
public Set<Annotation> getAnnotations()
- Specified by:
getAnnotationsin interfaceAnnotated
-
isAnnotationPresent
public boolean isAnnotationPresent(Class<? extends Annotation> annotationType)
- Specified by:
isAnnotationPresentin interfaceAnnotated
-
-