| Modifier and Type | Method and Description |
|---|---|
<E extends Annotation> |
AnnotationValueFetcher.getInnerAnnotation(Function<A,E> function)
|
| Modifier and Type | Method and Description |
|---|---|
<E extends Annotation> |
AnnotationValueFetcher.getInnerAnnotations(Function<A,E[]> function)
|
<A extends Annotation> |
WithAnnotations.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. |
| Modifier and Type | Class and Description |
|---|---|
class |
ClassBasedAnnotationValueFetcher<T extends Annotation>
AnnotationValueFetcher implementation which works directly with classes. |
| Modifier and Type | Method and Description |
|---|---|
<E extends Annotation> |
ClassBasedAnnotationValueFetcher.getInnerAnnotation(Function<T,E> function)
|
| Modifier and Type | Method and Description |
|---|---|
<E extends Annotation> |
ClassBasedAnnotationValueFetcher.getInnerAnnotations(Function<T,E[]> function)
|
<A extends Annotation> |
MethodWrapper.getValueFromAnnotation(Class<A> annotationClass) |
<A extends Annotation> |
FieldWrapper.getValueFromAnnotation(Class<A> annotationClass) |
<A extends Annotation> |
ParameterWrapper.getValueFromAnnotation(Class<A> annotationClass) |
<A extends Annotation> |
TypeWrapper.getValueFromAnnotation(Class<A> annotationClass) |
| Modifier and Type | Method and Description |
|---|---|
static <T extends Annotation> |
MuleExtensionAnnotationParser.mapReduceRepeatableAnnotation(WithAnnotations element,
Class<T> annotation,
Function<Annotation,T[]> containerMapper) |
| Modifier and Type | Method and Description |
|---|---|
static <R extends Annotation,S extends Annotation,T> |
MuleExtensionAnnotationParser.mapReduceAnnotation(WithAnnotations element,
Class<R> legacyAnnotationClass,
Class<S> sdkAnnotationClass,
Function<AnnotationValueFetcher<R>,T> legacyAnnotationMapping,
Function<AnnotationValueFetcher<S>,T> sdkAnnotationMapping,
Supplier<? extends org.mule.runtime.extension.api.exception.IllegalModelDefinitionException> dualDefinitionExceptionFactory)
Monad for extracting information from a
WithAnnotations element which might be annotated with two different
annotations of similar semantics. |
static <R extends Annotation,S extends Annotation,T> |
MuleExtensionAnnotationParser.mapReduceAnnotation(WithAnnotations element,
Class<R> legacyAnnotationClass,
Class<S> sdkAnnotationClass,
Function<AnnotationValueFetcher<R>,T> legacyAnnotationMapping,
Function<AnnotationValueFetcher<S>,T> sdkAnnotationMapping,
Supplier<? extends org.mule.runtime.extension.api.exception.IllegalModelDefinitionException> dualDefinitionExceptionFactory)
Monad for extracting information from a
WithAnnotations element which might be annotated with two different
annotations of similar semantics. |
static <L extends Annotation,A extends Annotation,T> |
MuleExtensionAnnotationParser.mapReduceRepeatableAnnotation(WithAnnotations element,
Class<L> legacyAnnotationType,
Class<A> sdkApiAnnotationType,
Function<Annotation,L[]> legacyContainerMapping,
Function<Annotation,A[]> sdkApiContainerMapping,
Function<AnnotationValueFetcher<L>,T> legacyMapping,
Function<AnnotationValueFetcher<A>,T> sdkApiMapping) |
static <L extends Annotation,A extends Annotation,T> |
MuleExtensionAnnotationParser.mapReduceRepeatableAnnotation(WithAnnotations element,
Class<L> legacyAnnotationType,
Class<A> sdkApiAnnotationType,
Function<Annotation,L[]> legacyContainerMapping,
Function<Annotation,A[]> sdkApiContainerMapping,
Function<AnnotationValueFetcher<L>,T> legacyMapping,
Function<AnnotationValueFetcher<A>,T> sdkApiMapping) |
static <R extends Annotation,S extends Annotation,T> |
MuleExtensionAnnotationParser.mapReduceSingleAnnotation(ExtensionElement extensionElement,
Class<R> legacyAnnotationClass,
Class<S> sdkAnnotationClass,
Function<AnnotationValueFetcher<R>,T> legacyAnnotationMapping,
Function<AnnotationValueFetcher<S>,T> sdkAnnotationMapping)
Monad for extracting information from an
ExtensionElement element which might be annotated with two different
annotations of similar semantics. |
static <R extends Annotation,S extends Annotation,T> |
MuleExtensionAnnotationParser.mapReduceSingleAnnotation(ExtensionElement extensionElement,
Class<R> legacyAnnotationClass,
Class<S> sdkAnnotationClass,
Function<AnnotationValueFetcher<R>,T> legacyAnnotationMapping,
Function<AnnotationValueFetcher<S>,T> sdkAnnotationMapping)
Monad for extracting information from an
ExtensionElement element which might be annotated with two different
annotations of similar semantics. |
static <R extends Annotation,S extends Annotation,T> |
MuleExtensionAnnotationParser.mapReduceSingleAnnotation(WithAnnotations element,
String elementType,
String elementName,
Class<R> legacyAnnotationClass,
Class<S> sdkAnnotationClass,
Function<AnnotationValueFetcher<R>,T> legacyAnnotationMapping,
Function<AnnotationValueFetcher<S>,T> sdkAnnotationMapping) |
static <R extends Annotation,S extends Annotation,T> |
MuleExtensionAnnotationParser.mapReduceSingleAnnotation(WithAnnotations element,
String elementType,
String elementName,
Class<R> legacyAnnotationClass,
Class<S> sdkAnnotationClass,
Function<AnnotationValueFetcher<R>,T> legacyAnnotationMapping,
Function<AnnotationValueFetcher<S>,T> sdkAnnotationMapping) |
| Modifier and Type | Method and Description |
|---|---|
static ExportInfo |
ExportInfo.fromLegacy(AnnotationValueFetcher<org.mule.runtime.extension.api.annotation.Export> annotation) |
static ExportInfo |
ExportInfo.fromSdkApi(AnnotationValueFetcher<org.mule.sdk.api.annotation.Export> annotation) |
| Modifier and Type | Method and Description |
|---|---|
static List<org.mule.runtime.api.meta.model.notification.NotificationModel> |
NotificationModelParserUtils.parseLegacyNotifications(AnnotationValueFetcher<org.mule.runtime.extension.api.annotation.notification.NotificationActions> value,
String extensionNamespace,
org.mule.metadata.api.ClassTypeLoader typeLoader) |
static List<org.mule.runtime.api.meta.model.notification.NotificationModel> |
NotificationModelParserUtils.parseNotifications(AnnotationValueFetcher<org.mule.sdk.api.annotation.notification.NotificationActions> value,
String extensionNamespace,
org.mule.metadata.api.ClassTypeLoader typeLoader) |
Copyright © 2003–2022 MuleSoft, Inc.. All rights reserved.