public class MinimalApplicationModelGenerator extends Object
ComponentModel configuration associated is
introspected to find it dependencies based on it's ComponentBuildingDefinition.
This process is recursively done for each of the dependencies in order to find all the required
ComponentModels that must be created for the requested ComponentModel to
work properly.| Constructor and Description |
|---|
MinimalApplicationModelGenerator(ApplicationModel applicationModel,
ComponentBuildingDefinitionRegistry componentBuildingDefinitionRegistry)
Creates a new instance associated to a complete
ApplicationModel. |
| Modifier and Type | Method and Description |
|---|---|
ApplicationModel |
getMinimalModelByName(String name)
Resolves the minimal set of
ComponentModels for a named component
within the configuration. |
ApplicationModel |
getMinimalModelByPath(String componentPath)
Resolves the minimal set of
ComponentModels for a component
within a flow. |
public MinimalApplicationModelGenerator(ApplicationModel applicationModel, ComponentBuildingDefinitionRegistry componentBuildingDefinitionRegistry)
ApplicationModel.applicationModel - the artifact ApplicationModel.componentBuildingDefinitionRegistry - the registry to find the ComponentBuildingDefinitions associated to each ComponentModel that must be resolved.public ApplicationModel getMinimalModelByPath(String componentPath)
ComponentModels for a component
within a flow.componentPath - the component path in which the component is located.ApplicationModel with the minimal set of ComponentModels required.NoSuchComponentModelException - if the requested component does not exists.public ApplicationModel getMinimalModelByName(String name)
ComponentModels for a named component
within the configuration.name - name of the ComponentModelApplicationModel with the minimal set of ComponentModels required.NoSuchComponentModelException - if the requested component does not exists.Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.