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.
|
| Modifier and Type | Method and Description |
|---|---|
ApplicationModel |
getMinimalModel(LazyComponentInitializer.ComponentLocationFilter filter)
Resolves the minimal set of
componentModels for the components that pass the LazyComponentInitializer.ComponentLocationFilter. |
ApplicationModel |
getMinimalModel(org.mule.runtime.api.component.location.Location location)
Resolves the minimal set of
componentModels for the component. |
public MinimalApplicationModelGenerator(ConfigurationDependencyResolver dependencyResolver)
dependencyResolver - a ConfigurationDependencyResolver associated with an ApplicationModelpublic ApplicationModel getMinimalModel(LazyComponentInitializer.ComponentLocationFilter filter)
componentModels for the components that pass the LazyComponentInitializer.ComponentLocationFilter.filter - to select the componentModels to be enabled.ApplicationModel with the minimal set of ComponentModels required.public ApplicationModel getMinimalModel(org.mule.runtime.api.component.location.Location location)
componentModels for the component.location - Location for the requested component to be enabled.ApplicationModel with the minimal set of ComponentModels required.NoSuchComponentModelException - if the location doesn't match to a component.Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.