public class ComponentModelHelper extends Object
| Constructor and Description |
|---|
ComponentModelHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addAnnotation(QName annotationKey,
Object annotationValue,
SpringComponentModel componentModel) |
static <T> Optional<T> |
getAnnotation(QName annotationKey,
SpringComponentModel componentModel) |
static boolean |
isAnnotatedObject(ComponentModel componentModel) |
static boolean |
isErrorHandler(org.mule.runtime.ast.api.ComponentAst componentModel) |
static boolean |
isMessageSource(org.mule.runtime.ast.api.ComponentAst componentModel) |
static boolean |
isProcessor(org.mule.runtime.ast.api.ComponentAst componentModel) |
static boolean |
isRouter(org.mule.runtime.ast.api.ComponentAst componentModel) |
static boolean |
isTemplateOnErrorHandler(org.mule.runtime.ast.api.ComponentAst componentModel) |
static org.mule.runtime.api.component.TypedComponentIdentifier.ComponentType |
resolveComponentType(org.mule.runtime.ast.api.ComponentAst componentModel,
ExtensionModelHelper extensionModelHelper)
Resolves the
TypedComponentIdentifier.ComponentType from a ComponentModel. |
static void |
updateAnnotationValue(QName annotationKey,
Object annotationValue,
org.springframework.beans.factory.config.BeanDefinition beanDefinition) |
public static org.mule.runtime.api.component.TypedComponentIdentifier.ComponentType resolveComponentType(org.mule.runtime.ast.api.ComponentAst componentModel,
ExtensionModelHelper extensionModelHelper)
TypedComponentIdentifier.ComponentType from a ComponentModel.componentModel - a ComponentAst that represents a component in the configuration.extensionModelHelper - helper to access components in extension modelpublic static boolean isAnnotatedObject(ComponentModel componentModel)
public static boolean isProcessor(org.mule.runtime.ast.api.ComponentAst componentModel)
public static boolean isMessageSource(org.mule.runtime.ast.api.ComponentAst componentModel)
public static boolean isErrorHandler(org.mule.runtime.ast.api.ComponentAst componentModel)
public static boolean isTemplateOnErrorHandler(org.mule.runtime.ast.api.ComponentAst componentModel)
public static void addAnnotation(QName annotationKey, Object annotationValue, SpringComponentModel componentModel)
public static void updateAnnotationValue(QName annotationKey, Object annotationValue, org.springframework.beans.factory.config.BeanDefinition beanDefinition)
public static <T> Optional<T> getAnnotation(QName annotationKey, SpringComponentModel componentModel)
public static boolean isRouter(org.mule.runtime.ast.api.ComponentAst componentModel)
Copyright © 2003–2020 MuleSoft, Inc.. All rights reserved.