public class BeanDefinitionFactory extends Object
BeanDefinitionFactory is the one that knows how to convert a ComponentAst and its parameters to actual
BeanDefinitions that can later be converted to runtime objects that will be
part of the artifact.
It will recursively process a ComponentAst to create a BeanDefinition. For the time being it will collaborate
with the old bean definitions parsers for configurations that are partially defined in the new parsing method.
| Modifier and Type | Field and Description |
|---|---|
static String |
CORE_ERROR_NS |
static String |
OBJECT_SERIALIZER_REF |
static String |
SOURCE_TYPE |
static String |
SPRING_PROTOTYPE_OBJECT |
static String |
SPRING_SINGLETON_OBJECT |
static String |
TARGET_TYPE |
| Constructor and Description |
|---|
BeanDefinitionFactory(String artifactId,
ComponentBuildingDefinitionRegistry componentBuildingDefinitionRegistry,
boolean enableByteBuddy) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
handleSpringComponentModel(SpringComponentModel springComponentModel,
Map<org.mule.runtime.ast.api.ComponentAst,SpringComponentModel> springComponentModels,
org.springframework.beans.factory.support.BeanDefinitionRegistry registry,
SpringConfigurationComponentLocator componentLocator) |
boolean |
hasDefinition(org.mule.runtime.api.component.ComponentIdentifier componentIdentifier)
Used to collaborate with the bean definition parsers mechanism.
|
boolean |
isComponentIgnored(org.mule.runtime.api.component.ComponentIdentifier identifier) |
boolean |
isLanguageConstructComponent(org.mule.runtime.api.component.ComponentIdentifier componentIdentifier) |
void |
resolveComponent(Map<org.mule.runtime.ast.api.ComponentAst,SpringComponentModel> springComponentModels,
List<org.mule.runtime.ast.api.ComponentAst> componentHierarchy,
org.mule.runtime.ast.api.ComponentAst component,
org.springframework.beans.factory.support.BeanDefinitionRegistry registry,
SpringConfigurationComponentLocator componentLocator)
Creates a
BeanDefinition for the ComponentModel. |
static String |
resolveProcessorRepresentation(String appId,
org.mule.runtime.api.component.location.ComponentLocation processorPath,
org.mule.runtime.ast.api.ComponentMetadataAst metadata)
Generates a representation of a flow element to be logged in a standard way.
|
public static final String SPRING_PROTOTYPE_OBJECT
public static final String SPRING_SINGLETON_OBJECT
public static final String SOURCE_TYPE
public static final String TARGET_TYPE
public static final String OBJECT_SERIALIZER_REF
public static final String CORE_ERROR_NS
public BeanDefinitionFactory(String artifactId, ComponentBuildingDefinitionRegistry componentBuildingDefinitionRegistry, boolean enableByteBuddy)
componentBuildingDefinitionRegistry - a registry with all the known ComponentBuildingDefinitions by the
artifact.errorTypeRepository - public boolean isComponentIgnored(org.mule.runtime.api.component.ComponentIdentifier identifier)
public void resolveComponent(Map<org.mule.runtime.ast.api.ComponentAst,SpringComponentModel> springComponentModels, List<org.mule.runtime.ast.api.ComponentAst> componentHierarchy, org.mule.runtime.ast.api.ComponentAst component, org.springframework.beans.factory.support.BeanDefinitionRegistry registry, SpringConfigurationComponentLocator componentLocator)
BeanDefinition for the ComponentModel.springComponentModels - a Map created ComponentAst and SpringComponentModelparentComponentModel - the container of the component model from which we want to create the bean definition.component - the component model from which we want to create the bean definition.registry - the bean registry since it may be required to get other bean definitions to create this one or
to register the bean definition.componentLocator - where the locations of any Component's locations must be registeredprotected void handleSpringComponentModel(SpringComponentModel springComponentModel, Map<org.mule.runtime.ast.api.ComponentAst,SpringComponentModel> springComponentModels, org.springframework.beans.factory.support.BeanDefinitionRegistry registry, SpringConfigurationComponentLocator componentLocator)
public static String resolveProcessorRepresentation(String appId, org.mule.runtime.api.component.location.ComponentLocation processorPath, org.mule.runtime.ast.api.ComponentMetadataAst metadata)
appId - processorPath - element - public boolean hasDefinition(org.mule.runtime.api.component.ComponentIdentifier componentIdentifier)
componentIdentifier - a ComponentModel identifier.ComponentBuildingDefinition for the specified configuration identifier, false if there's
not.public boolean isLanguageConstructComponent(org.mule.runtime.api.component.ComponentIdentifier componentIdentifier)
componentIdentifier - the component identifier to checktrue if the component identifier is one of the current language construct that have specific bean definitions
parsers since we don't want to include them in the parsing API.Copyright © 2003–2022 MuleSoft, Inc.. All rights reserved.