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 |
getMinimalModel(org.mule.runtime.api.component.location.Location location)
Resolves the minimal set of
ComponentModels for a component within a flow. |
List<ComponentModel> |
resolveComponentModelDependencies() |
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 getMinimalModel(org.mule.runtime.api.component.location.Location location)
ComponentModels for a component within a flow.location - 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 List<ComponentModel> resolveComponentModelDependencies()
List of the component models by dependency references. For instance (A refs B), (B refs C) and D. The
resulting list would have the following order: D, A, B, C.Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.