public class ConfigurationDependencyResolver extends Object implements BeanDependencyResolver
| Constructor and Description |
|---|
ConfigurationDependencyResolver(ApplicationModel applicationModel,
ComponentBuildingDefinitionRegistry componentBuildingDefinitionRegistry)
Creates a new instance associated to a complete
ApplicationModel. |
| Modifier and Type | Method and Description |
|---|---|
protected Set<String> |
findComponentModelsDependencies(Set<String> componentModelNames) |
protected ComponentModel |
findRequiredComponentModel(org.mule.runtime.api.component.location.Location location) |
ApplicationModel |
getApplicationModel() |
Collection<Object> |
resolveBeanDependencies(Set<String> beanNames) |
protected Set<String> |
resolveComponentDependencies(ComponentModel requestedComponentModel) |
Collection<String> |
resolveComponentDependencies(String componentName) |
List<ComponentModel> |
resolveComponentModelDependencies() |
public ConfigurationDependencyResolver(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 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.protected Set<String> resolveComponentDependencies(ComponentModel requestedComponentModel)
protected Set<String> findComponentModelsDependencies(Set<String> componentModelNames)
protected ComponentModel findRequiredComponentModel(org.mule.runtime.api.component.location.Location location)
public Collection<String> resolveComponentDependencies(String componentName)
componentName - the name attribute value of the component#componentName. An empty collection if there is no
component with such name.public ApplicationModel getApplicationModel()
public Collection<Object> resolveBeanDependencies(Set<String> beanNames)
resolveBeanDependencies in interface BeanDependencyResolverbeanNames - the bean names to resolve dependenciesCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.