@NoImplement
public interface WithAnnotations
| Modifier and Type | Method and Description |
|---|---|
<A extends Annotation> |
getAnnotation(Class<A> annotationClass)
Deprecated.
since 4.5.0. Use
getValueFromAnnotation(Class) instead |
<A extends Annotation> |
getValueFromAnnotation(Class<A> annotationClass)
Returns an optional
AnnotationValueFetcher which encapsulates the logic of obtaining annotations values when
executing with classes or with the Java AST. |
default boolean |
isAnnotatedWith(Class<? extends Annotation> annotation) |
@Deprecated <A extends Annotation> Optional<A> getAnnotation(Class<A> annotationClass)
getValueFromAnnotation(Class) insteadWithAnnotations componentA - The annotation typeannotationClass - Of the annotation to retrieveOptional annotation to retrieve<A extends Annotation> Optional<AnnotationValueFetcher<A>> getValueFromAnnotation(Class<A> annotationClass)
AnnotationValueFetcher which encapsulates the logic of obtaining annotations values when
executing with classes or with the Java AST.A - The annotation typeannotationClass - Of the annotation to retrieveOptional AnnotationValueFetcher to retrievedefault boolean isAnnotatedWith(Class<? extends Annotation> annotation)
annotation - The annotation to verify if the, WithAnnotations is annotated with.boolean indicating if the WithAnnotations element is annotated with the given annotationCopyright © 2003–2022 MuleSoft, Inc.. All rights reserved.