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(ConfigurationDependencyResolver dependencyResolver)
Creates a new instance.
|
MinimalApplicationModelGenerator(ConfigurationDependencyResolver dependencyResolver,
boolean ignoreAlwaysEnabled)
Creates a new instance of the minimal application generator.
|
| Modifier and Type | Method and Description |
|---|---|
ComponentModel |
findComponentModel(org.mule.runtime.api.component.location.Location location) |
List<ComponentModel> |
getComponentModels(Predicate<ComponentModel> predicate)
Resolves list of
componentModels for LazyComponentInitializer.ComponentLocationFilter given. |
ApplicationModel |
getMinimalModel(List<ComponentModel> componentModels)
Resolves the minimal set of
componentModels for the components requested. |
public MinimalApplicationModelGenerator(ConfigurationDependencyResolver dependencyResolver)
dependencyResolver - a ConfigurationDependencyResolver associated with an ApplicationModelpublic MinimalApplicationModelGenerator(ConfigurationDependencyResolver dependencyResolver, boolean ignoreAlwaysEnabled)
dependencyResolver - a ConfigurationDependencyResolver associated with an ApplicationModelignoreAlwaysEnabled - true if consider those components that will not be referenced and have to be enabled anyways.public ApplicationModel getMinimalModel(List<ComponentModel> componentModels)
componentModels for the components requested.componentModels - list of componentModels to be enabled.ApplicationModel with the minimal set of ComponentModels required.public List<ComponentModel> getComponentModels(Predicate<ComponentModel> predicate)
componentModels for LazyComponentInitializer.ComponentLocationFilter given.predicate - to select the componentModels to be enabled.ComponentModel with the minimal set of ComponentModels required.public ComponentModel findComponentModel(org.mule.runtime.api.component.location.Location location)
Copyright © 2003–2019 MuleSoft, Inc.. All rights reserved.