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)
Type
getBaseType()
Set<AnnotatedConstructor<T>>
getConstructors()
Set<AnnotatedField<? super T>>
getFields()
Class<T>
getJavaClass()
Set<AnnotatedMethod<? super T>>
getMethods()
Set<Type>
getTypeClosure()
boolean
isAnnotationPresent(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:
getJavaClass
in interfaceAnnotatedType<T>
-
getBaseType
public Type getBaseType()
- Specified by:
getBaseType
in interfaceAnnotated
-
getTypeClosure
public Set<Type> getTypeClosure()
- Specified by:
getTypeClosure
in interfaceAnnotated
-
getConstructors
public Set<AnnotatedConstructor<T>> getConstructors()
- Specified by:
getConstructors
in interfaceAnnotatedType<T>
-
getMethods
public Set<AnnotatedMethod<? super T>> getMethods()
- Specified by:
getMethods
in interfaceAnnotatedType<T>
-
getFields
public Set<AnnotatedField<? super T>> getFields()
- Specified by:
getFields
in interfaceAnnotatedType<T>
-
getAnnotation
public <R extends Annotation> R getAnnotation(Class<R> annotationType)
- Specified by:
getAnnotation
in interfaceAnnotated
-
getAnnotations
public <T extends Annotation> Set<T> getAnnotations(Class<T> annotationType)
- Specified by:
getAnnotations
in interfaceAnnotated
- Specified by:
getAnnotations
in interfaceAnnotatedType<T>
-
getAnnotations
public Set<Annotation> getAnnotations()
- Specified by:
getAnnotations
in interfaceAnnotated
-
isAnnotationPresent
public boolean isAnnotationPresent(Class<? extends Annotation> annotationType)
- Specified by:
isAnnotationPresent
in interfaceAnnotated
-
-